help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WIN 98 /NT installation questions


From: Dirk Eddelbuettel
Subject: Re: WIN 98 /NT installation questions
Date: Tue, 24 Aug 1999 21:25:34 -0400 (EDT)

  hh>  Thanks to Dirk who cleared a lot of things for me.  

My pleasure.  It seems that I did not send my reply to the list in my
reply. As this might be of help to others too, I hereby repost it. 

Regards, Dirk


----------------- snip: previous off-line reply ----------------------
From: Dirk Eddelbuettel <address@hidden>
To: h h <address@hidden>
Subject: WIN 98 /NT installation questions
Date: Sat, 21 Aug 1999 10:44:59 -0400 (EDT)


  HH>  I followed the instructions in README.gnu-gnu-win32-install and
  HH> installed octave on a win98 machine. Octave runs and gnuplot plots (I
  HH> first open a DOS shell, then run sh.exe, then run octave).
  HH>
  HH> But I don't know if I have done everything right.
  HH> 
  HH> 1. What is the purpose of /tmp directory? (It is actually c:\tmp on my
  HH> win98 box)

Cygwin really provides a Unix-ish environment for Octave. That way, internal
pathnames (as the Unix /tmp) can be made available.

The trick is to start a Cygwin session (you should have both an icon cygwin,
and a file cygwin.bat, you need that file later) and in that type (from
memory)

        mount c:\temp /tmp

and check with 

        df

that the new "filesystem" has been (logically) mounted. Next time you start
cygwin, it will already be present.

You also need this trick to make Octave (with Unix paths) and Gnuplot (a Dos
binary with Dos paths) both see the same tempfile in both /tmp/ and c:\temp.

  HH> 2. How to add c:\gnuwin32\b19\H-i386-cygwin32\bin to $PATH? I added
  HH> this in my autoexec.bat file. And I first invoke a DOS shell and then
  HH> run sh.exe. Is this correct? 

No, this refers to the PATH for Cygwin sessions only.

  HH> Does this $PATH refer to the DOS PATH or the cygnus bash shell PATH?
  HH> Where do you set the PATH for the cygnus shell?

In the file cygwin.bat. This starts your cygwin session, and will pass
settings on to other process started from here (like Octave).

  HH> 3. In the instruction, it says " * Setting the environment variable
  HH> TERM to linux will allow less to work in a bash terminal window and
  HH> from within Octave."
  HH> 
  HH> Where do I set the TERM environment variable?

In the file cygwin bat as

        export TERM=linux

  HH> 4. Again, the instruction says
  HH> 
  HH> "* Add C:\octave\bin to your path".
  HH> 
  HH>  Where do I do this? Is this for the cygnus shell?

Yes.

  HH> 5. The instruction:
  HH> 
  HH> " * In Octave, set the variable gnuplot_binary to point to the
  HH> pipe-gnuplot program
  HH> 
  HH> gnuplot_binary = "pipe-gnuplot /gnuplot/wgnuplot" "
  HH> 
  HH> Again, how do I set this up so that each time octave starts, it will be
  HH> automatically setup. I remember in Linux version of octave, there is a
  HH> .octaverc file. Is there a counter part in win98?

There are actually two (Linux and Cygwin). There is a global octaverc in 

        /usr/share/octave/2.0.14/m/startup/octaverc  

on my Linux box, and of course ~/.octaverc. You can add it to either one.

  HH> 6: The instruction reads:
  HH> 
  HH> " * Optionally set the environment variables HOME (for your home
  HH> direoctory using Unix file name syntax) and USER (for your user name) "
  HH> 
  HH> Where are these setup in win98/NT?

Control Settings -> System -> Environment    (or something close)

  HH> Thanks for your help.

Pleasure!  Questions don't often come in that organised a manner.

-- 
According to the latest figures, 43% of all statistics are totally worthless.



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]