-
Notifications
You must be signed in to change notification settings - Fork 6
/
INSTALL.CYGWIN
180 lines (126 loc) · 5.48 KB
/
INSTALL.CYGWIN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
These instructions show you how to build FriCAS on MS Windows from the sources
in the subversion repository. You may want to consider building FriCAS from a
distribution tarball instead, which contains pregenerated algebra Lisp,
HyperDoc pages and graphic examples. Moreover, using the tarball the build is
much faster - a few minutes instead of a few hours. You can get a tarball via
http://fricas.sourceforge.net/download.html
First of all, do not be afraid! The instructions below probably look more
intimidating than they really should be. In case something goes wrong, do not
hesitate to ask at [email protected].
Note1: Compilation of current trunk seem to fail at least on
some versions of Windows. Release 1.1.2 is reported to build
but with not working ')compile' command. This is under
investigation.
Note2: FriCAS needs 'noweb' for build. Unfortunately, recent
cygwin ships broken 'stdio.h' (the standard C header file),
which causes failure during noweb build. The workaround is
to edit 'usr/include/sys/stdio.h' and delete (or comment out)
the line:
ssize_t _EXFUN(getline, (char **, size_t *, FILE *));
(after building 'noweb' the line can be restored). For more
details see:
http://www.mad-computer-scientist.com/blog/2011/07/31/a-quick-note-on-building-noweb-on-cygwin
To compile FriCAS on MS Windows, we proceed as follows:
I) If you do not have Cygwin installed, go to
http://cygwin.org/
Look for a link called setup.exe and save it to disk.
II) Start Cygwin's setup program. The first few questions can be answered with
the default values, until you get to the "Select Packages" dialog.
Clicking on a little + will expand the list of packages. You should select
apart from the defaults the following:
(DISCLAIMER: this list is likely to be overkill. Also note that selecting
will also select many packages they depend on, this should happen
automatically.)
In Devel: gcc-mingw
gcc-mingw-core
make
patchutils
subversion
In Math: clisp
In Publishing: psutils
tetex
tetex-base
tetex-bin
tetex-extra
tetex-tiny
tetex-x11
In Web: wget
In X11: xterm
libICE-devel
libXpm-devel
libSM-devel
libX11-devel
xinit
font-adobe-dpi75
In Editors: emacs
emacs-X11
Complete the Cygwin installation process.
III) start Cygwin - a black console window should appear. Note that
it's better *not* to start Cygwin/X, but rather an "ordinary"
shell. Furthermore, it seems that it's a good idea to close all
other applications before building.
find a place to build FriCAS.
cd /cygdrive/c
mkdir scratch
cd scratch
(it is essential that the path to scratch does not contain any spaces.
Otherwise the build won't work...)
IV) follow the instructions in INSTALL (but note that we are going to build
FriCAS using clisp), that is:
1) Fetch sources:
svn co https://fricas.svn.sourceforge.net/svnroot/fricas/trunk fricas
alternatively, download a release version of the source. In this
case step 2) and 6) below should also be omitted.
2) Fetch nonstandard prerequisites
cd fricas
mkdir zips
cd zips
wget https://axiom.svn.sourceforge.net/svnroot/axiom/trunk/axiom/zips/noweb-2.10a.tgz
or, if the last command fails:
wget --no-check-certificate https://axiom.svn.sourceforge.net/svnroot/axiom/trunk/axiom/zips/noweb-2.10a.tgz
3) create the build directory (again: without spaces!)
cd ../..
mkdir fri-build
cd fri-build
4) configure. Possibly, you will have to restrict the PATH to
Cygwin programs, because otherwise configure may pick, for
example, Borland grep which causes failure later. You can do
this by typing
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
../fricas/configure --prefix=/usr --with-lisp=clisp
5) build and install:
make
make will very likely fail with an error like
mkdir /dev/null 2>/dev/null
make[1]: [install-elisp] Error 1 (ignored)
cp elisp/noweb-mode.el /dev/null
cp: cannot create regular file `/dev/null': Invalid request code
make[1]: *** [install-elisp] Error 1
make[1]: Leaving directory `/cygdrive/c/scratch/fri-build/noweb/src'
make: *** [stamp-noweb] Error 2
we ignore this error (which occurs because the ELISP environment variable
is set to /dev/null)
touch stamp-noweb
make
6) make the graphics examples:
IMPORTANT NOTE: this step failed when I tried. After the first
drawing appeared and disappeared, it did not continue. The
example graphics are in no way essential though and can be easily
reproduced in the installed system.
6a) start a Cygwin/X shell
6b) run the examples
cd /cygwin/c/scratch/fri-build/src/paste
make gphts
at this point (which will take a while), graphics should appear and
disappear.
cd ../..
make
7) install
make install
V) You can now start fricas with a comfortable user interface by
starting a Cygwin/X shell and typing
efricas
or, without emacs, using
fricas
efricas may sometimes randomly fail, this is a known
inconvenience. A fix is very welcome.