forked from fricas/fricas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.CYGWIN
110 lines (76 loc) · 3.26 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
These instructions show you how to build FriCAS on MS Windows from the sources
in the git 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].
To compile FriCAS on MS Windows, we proceed as follows:
I) If you do not have Cygwin installed, go to
https://cygwin.com/
Look for a link called setup-x86_64.exe or setup-x86.exe and save it to disk.
But 32bit Cygwin is not recommended by upstream. Following instructions are
tested in the 64bit version.
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-core
make
git
In X11 (optional):
xterm
libICE-devel
libXpm-devel
libSM-devel
libX11-devel
xinit
xorg-x11-fonts-dpi75
In Editors (optional):
emacs
emacs-X11
Complete the Cygwin installation process.
1) Install a Common Lisp implementation
Clisp is in the Cygwin repo, but it can not build FriCAS due to the
"cygwin-no-save-executable.patch". So we compile ecl from source here.
Install libgc1 libgc-devel libgmp-devel libffi-devel libatomic_ops1
libatomic_ops-devel to compile ecl.
tar xvf ecl-21.2.1.tgz
cd ecl-21.2.1
./configure
make
make install
III) start Cygwin - a black console window should appear. Note that
it's better *not* to start Cygwin/X, but rather an "ordinary"
shell. If the building process is very slow, please consider
turning off anti-virus software or add Cygwin to its exception list.
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 ecl), that is:
1) Fetch sources:
git clone https://github.com/fricas/fricas
alternatively, download a release version of the source.
2) create the build directory (again: without spaces!)
mkdir fri-build
cd fri-build
3) configure
../fricas/configure --with-lisp=ecl
4) build
make -jN
5) 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