Debian Codegraph @

INSTALL

raw
1 ---------------------------------------------
2 CafeOBJ Interpreter Installation Instructions
3 ---------------------------------------------
4
5 ============
6 Prerequisite
7 ============
8 CafeOBJ interpreter is built on Common Lisp, thus you need
9 some Common Lisp system to install CafeOBJ. CafeOBJ can be
10 built on the following platforms:
11
12 (1) SBCL version 1.1.7 (or later) http://www.sbcl.org/
13 (2) Allegro CL version 8.0 (or later) http://franz.com/
14 (3) CLISP version 2.4.9 (or later) http://www.clisp.org/
15
16 At least one of these needs to be installed in the users' PATH.
17
18 Considerations concering redestribution
19 ---------------------------------------
20 Building the CafeOBJ interpreter with SBCL allows for
21 redistribution without the need for SBCL being installed,
22 as the dump itself can be executed.
23
24 This is also possible with Allegro CL, but needs a specific
25 license obtainable from Franz.
26
27 With CLISP the interpreter has to be installed at the target
28 system.
29
30
31 ========
32 BUILDING
33 ========
34
35 Building is done in the usual way with running the following commands
36 in the source directory:
37
38 ./configure <arguments>
39 make
40 (sudo) make install
41
42 See below for possible configuration.
43
44 ======================
45 1) configure arguments
46 ======================
47
48 a) Selection of a lisp platform
49 -------------------------------
50
51 Selection of the Common Lisp platform to build the CafeOBJ interpreter
52 is done with the configure option
53 --with-lisp
54 as in
55 ./configure --with-lisp="platform"[,"platform"]
56
57 You can specify a list of interpreters to be used to build CafeOBJ.
58 The wrapper provides the command line option --engine to select one
59 of the underlying interpreters.
60
61 "platform" should be one of the followings, and should provide
62 the following command line program name
63
64 configure argument program name
65 sbcl sbcl -- SBCL
66 acl alisp -- Allegro CL
67 acl-standalone alisp -- Allegro CL with distribution license
68 clisp clisp -- CLISP
69
70 You must have one of these command in your PATH environment.
71
72 -with-lisp="platform" can be omitted, in this case it selects the
73 first interpreter found by testing in the following order:
74 acl-standalone, acl, sbcl, clisp
75
76 Finally, one can use
77 -with-lisp=all
78 which builds for all found Common Lisp platforms.
79
80 In case your interpreter is named different than the above, you
81 can override it with
82 --with-sbcl=<sbcl-name>
83 --with-acl=<acl-name>
84 --with-clisp=<clisp-name>
85
86 Using the cafeobj command line argument
87 --engine <engine>
88 one can select the engine at run time. By default the one first listed
89 in the configure call will be used.
90
91
92 b) Installation location
93 ------------------------
94
95 Be default CafeOBJ is installed in GNU standard compliant directories,
96 that is
97 $prefix/bin/ -- cafeobj - a shell script that invokes the
98 necessary programs to start the CafeOBJ interpreter.
99 (configure option --bindir)
100
101 $prefix/lib/cafeobj-N.M/
102 -- dump files for the various lisp platforms
103 (configure option --libdir + cafeobj-N.M)
104
105 $prefix/share/cafeobj-N.M/lib/
106 -- standard libraries, if you made cafeobj with
107 PigNose, fopl.mod will be put here.
108 (configure option --datarootdir + cafeobj-N.M/lib)
109
110 $prefix/share/cafeobj-N.M/prelude/
111 -- cafeobj standard prelude files.
112 (configure option --datarootdir + cafeobj-N.M/prelude)
113
114 $prefix/share/doc/cafeobj/
115 -- documentation and example files
116 (configure option --docdir + cafeobj)
117
118 $prefix is by default /usr/local, but can be selected with
119 --prefix=<PATH>
120 during the configure run.
121
122
123 There is also
124 --enable-traditional-layout
125 which selects traditional layout of the files, which is
126 $prefix/bin/ -- cafeobj - a shell script that invokes the
127 necessary programs to start the CafeOBJ interpreter.
128
129 $prefix/cafeobj-N.M/bin/
130 -- necessary programs to start the CafeOBJ interpreter.
131 and the dump files for the various lisp platforms
132
133 $prefix/cafeobj-N.M/lib/
134 -- standard libraries, if you made cafeobj with
135 PigNose, fopl.mod will be put here.
136
137 $prefix/cafeobj-N.M/prelude/
138 -- cafeobj standard prelude files.
139
140 $prefix/cafeobj-N.M/doc/
141 -- documentation and example files
142
143
144 c) Rebuilding documentation pdfs
145 --------------------------------
146 The configure switch
147 --enable-rebuild-doc
148 triggers a rebuild of all pdfs. Since some of these need special fonts
149 and Japanese TeX systems to correctly produce pdfs, we recommend not
150 using this.
151
152 d) Emacs support file
153 ---------------------
154 We distribute an Emacs major mode in cafeobj-mode.el. The configure
155 script will search for an installation of Emacs (binary emacs or xemacs)
156 and install the elisp file into the respective site-lisp path. The
157 selected destination can be adjusted with
158 --with-lispdir
159 Furthermore, the used emacs can be influenced with the EMACS and
160 EMACSLOADPATH environment variables.
161
162 ===========================
163 2) Building the interpreter
164 ===========================
165
166 Try building the CafeOBJ by invoking
167
168 make
169
170 This will make the needed CafeOBJ binaries within the
171 sub directories. If something fails for your system, and you want to
172 submit a bug report, you may wish to include your "config.status"
173 file, your host type, operating system and information about the
174 used Common Lisp interpreter including version number, make output,
175 and anything else you think will be helpful.
176
177 =======================
178 3) Installing the files
179 =======================
180
181 Invoke
182
183 make install
184
185 or, if you don't have permissions, maybe
186
187 sudo make install
188
189 This will install CafeOBJ interpreter (cafeobj).
190
191
192 Staged installes are supported in two ways:
193 make install DESTDIR=<path>
194 prefix all installations with $DESTDIR.
195
196 make install prefix=<path>
197 will override the prefix set during initial configuration. Be warned
198 that in this case the cafeobj script might not find the dumps.
199
200
201 ===========
202 4) Clean up
203 ===========
204
205 (optional)
206
207 By invoking
208
209 make clean
210
211 generated files are removed, but configuration remains as is. If you
212 want to go back to a clean state of pre-configuration, use
213
214 make distclean
215
216
217 -- EOF