annotate README.Windows @ 4550:69a9b22a72a2

[project @ 2003-10-27 15:41:55 by jwe]
author jwe
date Mon, 27 Oct 2003 15:41:55 +0000
parents f36a75f8deca
children b6dc2aad574a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
1 The following is my current best set of directions for building Octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
2 from sources on a Windows system using the Cygwin tools. If you
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
3 already have Cygwin installed, you may need to update your
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
4 installation of tools to include those mentioned below.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
5
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
6 Following these steps should give you an Octave installation that
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
7 includes all the necessary tools for building dynamically linked
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
8 functions (.oct files).
3847
92fb162eba24 [project @ 2001-08-10 17:18:17 by jwe]
jwe
parents: 3176
diff changeset
9
92fb162eba24 [project @ 2001-08-10 17:18:17 by jwe]
jwe
parents: 3176
diff changeset
10
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
11 1. Use your favorite browser to view the page http://www.cygwin.com
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
12
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
13 2. Click on the "Install or update now" link.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
14
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
15 3. A dialog should appear with the option to run the setup program
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
16 from its current location or save it to disk. Either will work,
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
17 but I usually choose to save the setup program to disk so that it
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
18 is possible to run it later to update the installation without
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
19 having to go back to the web page using a browser.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
20
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
21 4. Run the setup program.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
22
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
23 5. Choose "Install from Internet".
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
24
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
25 6. Select a root install directory. You may choose any directory, but
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
26 it needs to have about 600MB available to install all the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
27 necessary Cygwin tools plus build and install Octave from sources.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
28 That may seem like a large disk space requirement, but remember
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
29 that you are getting more than just Octave, you are installing a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
30 Unix-like development environment including C, C++, and Fortran
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
31 compilers as well. Once Octave is installed, you can delete the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
32 sources and build directory, freeing up about 250MB.
3154
352a80c32765 [project @ 1998-02-14 19:17:59 by jwe]
jwe
parents: 3130
diff changeset
33
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
34 You may choose to install for just you or all users (if you have
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
35 permission to do so). I would select "Unix" as the default text
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
36 file type (this option should be the default).
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
37
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
38 7. Select a local package directory. This is a directory that the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
39 setup program will use to temporarily store package files before
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
40 installing them. It should have plenty of space (probably 70MB
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
41 or more). You may delete this directory once the installation is
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
42 complete.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
43
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
44 8. Select your Internet Connection. Probably "Direct Connection" is
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
45 OK unless you are behind a firewall of some kind that limits your
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
46 access to the Internet.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
47
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
48 9. Choose a download site. One that is "near" you on the net is
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
49 probably best.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
50
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
51 10. Select packages. The defaults are not enough to build all of
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
52 Octave from sources. In addition to the default set of packages,
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
53 you should select the following packages from the following
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
54 categories:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
55
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
56 Archive: unzip
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
57 Devel: autoconf, binutils, bison, cvs, dejagnu, flex, gcc,
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
58 gperf, make
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
59 Text: less, tetex, tetex-base
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
60 Utils: diff, patch
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
61
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
62 Once you have made these selections, click the Next button to
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
63 download and install all the selected packages. The download and
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
64 install may take a while depending on the speed of your computer
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
65 and your connection to the net.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
66
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
67 11. Once the download and file installation is done, click Finish. I
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
68 usually choose to create an icon on the desktop and put an icon in
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
69 the start menu. After you click finish, a series of scripts will
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
70 run, displaying some output in a terminal window. It will take a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
71 few minutes.
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
72
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
73 12. Download and install Gnuplot:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
74
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
75 a. Use your favorite browser to go to http://www.gnuplot.info and
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
76 download a binary package of gnuplot for Windows. At the time
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
77 of this writing, it was available from the gnuplot ftp site in
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
78 the file gp373w32.zip.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
79
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
80 b. When you download the zip file, place it in your Cygwin /tmp
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
81 directory. This directory will be called something like
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
82 c:\cygwin\tmp in Windows (the precise location depends on where
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
83 you chose to install Cygwin).
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
84
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
85 c. After downloading the zip file, start Cygwin (actually a bash
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
86 shell running in a terminal window) by clicking on the Cygwin
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
87 desktop icon or use the start menu item that you created when
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
88 you installed Cygwin.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
89
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
90 d. Run the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
91
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
92 unzip /tmp/gp373w32.zip
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
93
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
94 to unpack the zip archive. This command should create a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
95 subdirectory called gp373w32 in your Cygwin home directory.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
96
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
97 e. Move the gnuplot programs and help file to the Cygwin bin
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
98 directory:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
99
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
100 mv gp373w32/pgnuplot.exe /usr/local/bin
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
101 mv gp373w32/wgnupl32.exe /usr/local/bin
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
102 mv gp373w32/WGNUPLOT.HLP /usr/local/bin
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
103
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
104 Make sure that executable files have execute permissions set:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
105
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
106 chmod a+rx /usr/local/bin/pgnuplot.exe
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
107 chmod a+rx /usr/local/bin/wgnupl32.exe
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
108
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
109 f. Test it by typing the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
110
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
111 wgnupl32
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
112
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
113 This command should bring up a gnuplot command window. Try
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
114 plotting something by typing
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
115
4487
f36a75f8deca [project @ 2003-08-25 17:24:07 by jwe]
jwe
parents: 4400
diff changeset
116 plot sin(x)
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
117
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
118 at the gnuplot prompt. This command should bring up a plot
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
119 window displaying a sine wave.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
120
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
121 g. close gnuplot and start the Octave installation.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
122
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
123 13. Get the Octave sources, either from a current snapshot
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
124 distribution or from CVS:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
125
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
126 Snapshot:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
127
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
128 a. Download a copy of the current version of Octave from
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
129 ftp://ftp.octave.org. You may use the command line ftp
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
130 client in Cygwin or a web browser. You are looking for the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
131 most recent version in the pub/octave/bleeding-edge
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
132 directory. At the time of this writing, it was
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
133 octave-2.1.46.tar.gz. Save this file to your Cygwin home
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
134 directory. This directory will usually be called something
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
135 like c:\cygwin\home\jwe from Windows (the precise location
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
136 depends on where you chose to install Cygwin).
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
137
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
138 IMPORTANT: If you use the ftp client, be sure to set the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
139 binary mode for downloads by typing
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
140
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
141 binary
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
142
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
143 at the ftp prompt.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
144
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
145 b. Unpack the source files using the command:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
146
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
147 tar zxf octave-2.1.46.tar.gz
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
148
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
149 in the Cygwin shell. This command will create a subdirectory
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
150 called octave-2.1.46 in your home directory.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
151
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
152 c. Change your current working directory to the top-level Octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
153 source directory:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
154
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
155 cd octave-2.1.46
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
156
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
157 then continue with step 14 below.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
158
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
159 CVS:
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
160
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
161 a. Check out a copy of the current sources from the public CVS
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
162 archive by running the following commands
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
163
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
164 cvs -d :pserver:anoncvs@www.octave.org:/cvs login
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
165 cvs -z 9 -d :pserver:anoncvs@www.octave.org:/cvs checkout octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
166
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
167 in the Cygwin shell. The first command will prompt you for a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
168 password; reply with anoncvs. The checkout command will
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
169 create a subdirectory called octave containing the current
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
170 CVS version of the Octave sources.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
171
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
172 b. Change your current working directory to the top-level Octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
173 source directory:
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
174
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
175 cd octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
176
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
177 c. Build the configure scripts by running the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
178
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
179 ./autogen.sh
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
180
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
181 then continue with step 14 below.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
182
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
183
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
184 14. Configure Octave by running the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
185
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
186 ./configure --enable-shared --disable-static
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
187
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
188 This command will take several minutes to run as the configure
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
189 script determines what features are available on your system. You
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
190 need the --enable-shared option if you want to build dynamically
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
191 loaded functions (.oct files) later. You may omit the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
192 --disable-static option if you want to build static libraries (.a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
193 files) in addition to shared libraries, but the build will take
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
194 about twice as long to complete.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
195
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
196 15. Build the Octave binary by running the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
197
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
198 make
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
199
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
200 You may see warnings from gcc saying that __cdecl is redefined or
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
201 that all code is position independent. You may safely ignore
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
202 these warnings.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
203
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
204 16. (OPTIONAL) Run Octave's regression test suite by running the
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
205 command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
206
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
207 make check
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
208
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
209 Running the tests may take a very long time, so if you are in a
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
210 hurry, you might want to skip this step. At the time of this
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
211 writing, there are 4 "expected" failures related to the try-catch
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
212 and eval commands. You may safely ignore those failures.
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
213
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
214 17. Complete the installation by running the command
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
215
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
216 make install
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
217
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
218 18. Try starting Octave by running the command
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
219
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
220 octave
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
221
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
222 in the cygwin shell and then typing
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
223
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
224 sombrero (41)
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
225
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
226 at the Octave prompt to see if you can create a plot.
3167
d609b993be3b [project @ 1998-04-17 04:41:59 by jwe]
jwe
parents: 3154
diff changeset
227
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
228 19. Try to build a .oct file and run it:
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
229
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
230 cd examples
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
231 mkoctfile hello.cc
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
232 octave
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
233 ...
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
234 octave:1> hello
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
235 Hello, world!
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3167
diff changeset
236
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3167
diff changeset
237
2587
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
238
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
239 John W. Eaton
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
240 jwe@bevo.che.wisc.edu
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
241 University of Wisconsin-Madison
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
242 Department of Chemical Engineering
7323c6c5c1c4 [project @ 1996-12-12 08:14:36 by jwe]
jwe
parents:
diff changeset
243
4400
54a8705b0463 [project @ 2003-05-01 16:31:01 by jwe]
jwe
parents: 3847
diff changeset
244 Wed Apr 30 17:15:32 2003