3847
|
1 *** PLEASE NOTE: This information is mostly out of date. It would be |
|
2 *** useful for someone who uses Octave on Windows to take over |
|
3 *** mainenance of this and other files related to running Octave on |
|
4 *** Windows systems. |
|
5 |
|
6 |
3154
|
7 Instructions for installing Octave on Windows NT/95 systems using the |
|
8 beta 18 release of the gnu-win32 tools from Cygnus Support. |
|
9 |
|
10 1. Install the Cygnus gnu-win32 tools. You only need the user tools, |
|
11 but you can install the full development kit instead (either will |
|
12 work -- the development kit contains all the user tools plus the |
|
13 GNU compilers and other development tools that are not needed to |
|
14 just run Octave). The gnu-win32 tools are available from |
|
15 ftp://ftp.cygnus.com/pub/gnu-win32/latest, and also from |
|
16 ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32. |
|
17 |
|
18 -- Download usertools.exe or cdk.exe. |
|
19 |
|
20 -- Install the tools by running the file usertools.exe (or |
|
21 cdk.exe) and following the directions. The default install |
|
22 location is /gnuwin32/b18 (the rest of the examples in this |
|
23 document assume that you've used the default location). |
|
24 |
|
25 -- Create a /bin directory and put a copy of sh.exe there. You |
|
26 can find the sh.exe file in /gnuwin32/b18/H-i386-cygwin32/bin. |
|
27 |
|
28 -- Create a /tmp directory. |
|
29 |
|
30 -- Add |
|
31 |
|
32 C:\gnuwin32\b18\H-i386-cygwin32\bin |
|
33 |
|
34 to your $PATH. |
|
35 |
|
36 -- Create a /etc directory and put a copy of the termcap file |
|
37 there. You can find a suitable termcap file in the directory |
|
38 /gnuwin32/b18/H-i386-cygwin32/etc. |
|
39 |
|
40 -- There is a bug in the main gnu-win32 dll that will cause |
|
41 Octave to fail. You need to fix it by either editing the file |
|
42 (using an editor like Emacs that can handle binary files) or |
|
43 by replacing it with the file cygwin-setpwent-fixed.dll from |
|
44 ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32. |
|
45 |
|
46 To fix the problem by editing the file, open the file |
|
47 /gnuwin32/b18/H-i386-cygwin32/bin/cygwin.dll and replace the |
|
48 string setpwend with setpwent. This change needs to be made |
|
49 in three places in the same file. Next, copy the fixed file to |
|
50 /gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/cygwin.dll. |
|
51 |
|
52 To fix the problem by replacing the file with a version that's |
|
53 already been fixed, download the file cygwin-setpwent-fixed.dll |
|
54 from ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32 and |
|
55 copy it to /gnuwin32/b18/H-i386-cygwin32/bin/cygwin.dll and |
|
56 /gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/cygwin.dll. |
|
57 |
|
58 2. Install less for gnuwin32. A copy is available from |
|
59 ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32 |
|
60 |
|
61 -- Download the file less-gnu-win32.tar.gz. |
|
62 |
|
63 -- Install it along with the gnu-win32 tools. Change your |
|
64 directory to /gnuwin32/b18/H-i386-cygwin32/bin and untar the |
|
65 less-gnu-win32.tar.gz file (bash syntax): |
|
66 |
|
67 tar zxf /path/to/less-gnu-win32.tar.gz |
|
68 |
|
69 -- Set the environment variable TERM to linux. |
|
70 |
|
71 3. Install Octave. |
|
72 |
|
73 -- Download the file octave-2.0.10-i386-pc-cygwin32.tar.gz from |
|
74 ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32. |
|
75 |
|
76 -- Untar the distribution: |
|
77 |
|
78 tar zxf octave-2.0.10-i386-pc-cygwin32.tar.gz |
|
79 |
|
80 The files will be unpacked into a subdirectory called |
|
81 octave-2.0.10-i386-pc-cygwin32. |
|
82 |
|
83 -- Change your directory to octave-2.0.10-i386-pc-cygwin32 and |
|
84 install the files using the command ./install-octave (running |
|
85 bash). |
|
86 |
|
87 -- The default installation directory is /octave. If you choose |
|
88 a different installation directory, you will have to set the |
|
89 environment variable OCTAVE_HOME to the name of that directory |
|
90 (using Unix file name syntax) in order for Octave to work. |
|
91 |
|
92 -- Add C:\octave\bin to your path. |
|
93 |
|
94 -- Set the environment variable TERM to linux. |
|
95 |
|
96 -- Optionally set the environment variables HOME (for your home |
|
97 direoctory using Unix file name syntax) and USER (for your user |
|
98 name). |
|
99 |
|
100 Note that Octave requires gnuplot for plotting, but the normal Windows |
|
101 version of gnuplot will not work because it only reads from the GUI |
|
102 and refuses to read input from stdin. Mumit Khan has written a patch |
|
103 that fixes the problem, but the gnuplot license does not allow us to |
|
104 distribute modified versions of gnuplot in binary form. The patch is |
|
105 available from http://www.xraylith.wisc.edu/~khan/software/gnu-win32. |
|
106 |
|
107 Eventually, I hope to automate most of this process and make it much |
|
108 simpler. Please contact me if you are interested in helping out with |
|
109 this task. |
|
110 |
|
111 Thanks, |
|
112 |
|
113 John W. Eaton |
|
114 jwe@bevo.che.wisc.edu |
|
115 University of Wisconsin-Madison |
|
116 Department of Chemical Engineering |
|
117 |
|
118 Fri Feb 13 19:24:01 1998 |