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