source: git/doc/INSTALL_unix.texi @ fcba80d

spielwiese
Last change on this file since fcba80d was fcba80d, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: HTML git-svn-id: file:///usr/local/Singular/svn/trunk@9331 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 11.5 KB
Line 
1@comment -*-texinfo-*-
2@comment $Id: INSTALL_unix.texi,v 1.24 2006-07-20 12:08:51 Singular Exp $
3@c FILE: INSTALL_unix.texi
4@c PURPOSE: Installation instruction for Singular on Unix
5@c
6
7@c @ifclear VERSION
8@include version.texi
9@c @end ifclear
10
11@ifclear singularmanual
12@majorheading Unix installation instructions for @sc{Singular} version @value{VERSION}
13@end ifclear
14
15@ifclear UNAME
16@set _UNAME <uname>
17@end ifclear
18
19@ifset UNAME
20@include uname.texi
21@end ifset
22
23To install @sc{Singular} on a
24@ifset UNAME
25@value{_UNAME}
26@end ifset
27@ifclear UNAME
28Unix
29@end ifclear
30platform, you need the following two
31archives:
32@table @code
33@item a:
34Singular-@value{VERSION}-share.tar.gz
35contains architecture independent data like documentation and libraries.
36@item b:
37Singular-@value{VERSION}-@value{_UNAME}.tar.gz
38contains architecture dependent executables, like the @sc{Singular}
39program.
40@end table
41@ifclear UNAME
42@*
43@code{@value{_UNAME}} is a description of the processor and operating system
44for which @sc{Singular} is compiled (e.g, @code{ix86-Linux}). Please contact us if
45you can not find an appropriate architecture dependent archive.
46@end ifclear
47
48You can obtain these (and other) archives from
49@display
50@uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/UNIX/}.
51@end display
52
53@include register.texi
54
55@heading To install SINGULAR
56
57Make sure that you have approximately 20 MByte of free disk space and follow
58these steps.
59@enumerate
60@item
61Simply change to the directory in which you wish to install
62@sc{Singular} (usually wherever you install 3rd-party software), for example:
63@smallexample
64cd /usr/local
65or
66mkdir install;cd install
67(you do not need root privileges in this case)
68@end smallexample
69
70@sc{Singular} specific subdirectories will be created in such a way
71that multiple versions and multiple architecture dependent files
72of @sc{Singular} can peaceably coexist under the same @code{/usr/local}
73tree.
74
75@item
76Unpack the archives:
77@smallexample
78gzip -dc <path_to>/Singular-@value{VERSION}-@value{_UNAME}.tar.gz | tar -pxf -
79gzip -dc <path_to>/Singular-@value{VERSION}-share.tar.gz | tar -pxf -
80@end smallexample
81
82This creates the the directory Singular/@value{VERSION} with
83@multitable @columnfractions .36 .64
84@item (sub)directories
85@tab  which contain
86@item @code{@value{_UNAME}}
87@tab @code{Singular} and @code{ESingular} executables
88@item @code{LIB}
89@tab @sc{Singular} libraries (@code{*.lib} files)
90@item @code{emacs}
91@tab files for the @sc{Singular} Emacs user interface
92@item @code{info}
93@tab info files of @sc{Singular} manual
94@item @code{html}
95@tab html files of @sc{Singular} manual
96@item @code{doc}
97@tab miscellaneous documentation files
98@item @code{examples}
99@tab @sc{Singular} examples (@code{*.sing} files)
100@end multitable
101
102For the executable to work, the directory layout must look pretty much
103like this; the executable looks for "sibling" directories at run-time
104to figure out where its @sc{Singular} libraries and on-line
105documentation files are. These constraints on the local directory layout
106are necessary to avoid having to hard-code pathnames into the
107executables, or require that environment variables be set before
108running the executable. In particular, you @strong{must not move or copy}
109the @sc{Singular} executables to another place, but use soft-links
110instead.
111@end enumerate
112
113The following steps are optional:
114
115@itemize @bullet
116@item
117Arrange that typing @code{Singular} at the shell prompt starts up the
118installed @sc{Singular} executable.
119
120If you have root permission, do:
121@smallexample
122ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/Singular  /usr/local/bin/Singular-@value{VERSION}
123ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/ESingular  /usr/local/bin/ESingular-@value{VERSION}
124ln -s /usr/local/bin/Singular-@value{VERSION} /usr/local/bin/Singular
125ln -s /usr/local/bin/ESingular-@value{VERSION} /usr/local/bin/ESingular
126@end smallexample
127       
128Otherwise, append the directory
129@code{`pwd`/Singular/@value{VERSION}/@value{_UNAME}/} to your @code{$PATH}
130environment variable. For the @code{csh} (or, @code{tcsh}) shell do:
131@smallexample
132set path=(`pwd`/Singular/@value{VERSION}/@value{_UNAME} $path)
133@end smallexample
134For the @code{bash} (or, @code{ksh}) shell do:
135@smallexample
136export PATH=`pwd`/Singular/@value{VERSION}/@value{_UNAME}/:$PATH
137@end smallexample
138
139You also might want to adjust your personal start-up files
140(@code{~/.cshrc} for @code{csh}, @code{~/.tcshrc} for @code{tcsh}, or
141@code{~/.profile} for @code{bash}) accordingly,
142so that the @code{$PATH} variable is set automatically each time you login.
143
144@strong{IMPORTANT:} Do @emph{never} move or copy the file
145@code{Singular/@value{VERSION}/@value{_UNAME}/Singular} to another
146place, but use soft-links instead.
147
148@item
149If you wish to use any of following features of
150@sc{Singular}, make sure that the respective programs are installed on your system:
151
152@multitable @columnfractions .5 .5
153@item @strong{Feature} @tab @strong{Requires}
154@item running @code{ESingular}, or @code{Singular} within Emacs
155@tab @uref{http://www.fsf.org/software/emacs/emacs.html,,Emacs} version
15620 or higher, or, @uref{http://www.xemacs.org,,XEmacs} version 20.3 or
157higher (ESingular is only included in the Linux distribution,
158on other Unix platforms you can download the
159@uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/,,
160Singular emacs lisp files} but we give no warranties for specific platforms).
161@item on-line @code{html} help
162@tab @uref{http://www.netscape.com,,netscape} browser
163@item on-line @code{info} help
164@tab @uref{http://www.texinfo.org,,info}, or
165@uref{http://math-www.uni-paderborn.de/~axel/tkinfo/,,tkinfo} texinfo browser programs
166@item TAB completion and history mechanism of ASCII-terminal interface
167@tab shared @uref{ftp://ftp.de.uu.net/pub/gnu/readline/,,readline}
168library, i.e. @code{/usr/lib/libreadline.so}
169@item visualization of curves and surfaces
170@tab
171@uref{http://www.mathematik.uni-mainz.de/AlgebraischeGeometrie/surf/surf.shtml,,surf}
172version 0.9 or higher (available for Linux, Solaris, MacOS X and Windows).
173@end multitable
174
175You may download most of these programs from
176@display
177@uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils/}.
178@end display
179
180@item Customize the on-line help system:
181
182By default, on-line help is displayed in the @code{html} format using
183the @code{netscape} program.
184
185However, this behavior can be customized in several ways
186using the @sc{Singular} commands @code{system("--browser",<browser>)}
187and @code{system("--allow-net", 1)} (or, by starting up @sc{Singular}
188with the respective command line options).
189
190In particular, creating the file
191@code{Singular/@value{VERSION}/LIB/.singularrc} and putting the
192@sc{Singular} command
193@smallexample
194system("--allow-net", 1);
195@end smallexample
196in it, allows the on-line help system to fetch its @code{html} pages
197from @uref{http://www.singular.uni-kl.de, Singular's WWW
198home site}
199in case its local html pages are not found. That is, you may delete your
200local html pages, after setting this option.
201
202See also
203@ifset singularmanual
204@ref{The online help system}, @ref{Command line options}, and
205@ref{Startup sequence},
206@end ifset
207@ifclear singularmanual
208the sections @emph{The online help system}, @emph{Command line options}, and
209@emph{Startup sequence} in the @sc{Singular} manual
210@end ifclear
211for more details on customizing the on-line help system.
212
213@item
214Add the line
215@smallexample
216* Singular:(singular.hlp).     A system for polynomial computations
217@end smallexample
218to your system-wide @code{dir} file (usually @code{/usr/info/dir} or
219@code{/usr/local/info/dir} and  copy or soft-link the file
220@code{Singular/@value{VERSION}/info/singular.hlp}
221to the directory of your @code{dir} file.
222@*This assures that the
223@sc{Singular} manual can be  accessed from stand-alone texinfo
224browser programs such as @code{info} or @code{Emacs}.
225(It is not necessary for the use of the help system from within @code{Singular}.)
226@end itemize
227
228@heading Troubleshooting
229
230@itemize @bullet
231@item General: @sc{Singular} can not find its libraries or on-line help
232@enumerate
233@item
234Make sure that you have read and/or execute permission the files and
235directories of the Singular distribution. If in doubt, @code{cd} to the
236directory where you unpacked @sc{Singular}, and do (as root, if
237necessary):
238@smallexample
239chmod -R a+rX Singular
240@end smallexample
241
242@item
243Start up @sc{Singular}, and issue the command @code{system("Singular");}.
244If this does not return the correct and expanded location of the
245@sc{Singular} executable, then you found a bug in @sc{Singular}, which we
246ask you to report (see below).
247@item
248Check whether the directories containing the libraries and on-line help
249files can be found by @sc{Singular}: If @code{$bindir} denotes the
250directory where the @sc{Singular} executable resides, then @sc{Singular}
251looks for library files as follows:
252@* (0) the current directory
253@* (1) all dirs of the environment variable SINGULARPATH
254@* (2) @code{$bindir/LIB}
255@* (3) @code{$bindir/../LIB}
256@* (4) @code{/usr/local/Singular/@value{VERSION}/LIB}
257@* (4) @code{/usr/local/Singular/LIB}
258@* The on-line @code{info} files need to be at  @code{$bindir/../info} and the
259@code{html} pages at @code{$bindir/../html}.
260@end enumerate
261
262You can inspect the found library and @code{info}/@code{html}
263directories by starting up @sc{Singular} with the
264@code{--version} option, or by issuing the @sc{Singular} command
265@code{system("--version");}.
266
267@item Under SuSE-Linux, @sc{ESingular} does not display a prompt:
268@cindex SuSE, ESingular bug
269@cindex ESingular, no prompt
270@cindex bug, ESingular
271This is due to the very restrictive access rights of @code{/dev/pty*} of
272the standard @uref{http:/www.suse.de,SuSE} distribution (starting from
273version 6.3 on). As root, do one of the following: Either
274@example
275chmod 666 /dev/pty*
276@end example
277or,
278@example
279chmod g+s $(which emacs)
280chgrp tty $(which emacs)
281chmod g+s $(which xemacs)
282chgrp tty $(which xemacs)
283@end example
284
285@item For @code{HPUX} systems:
286@*The /etc/termcap files which are pre-installed on these systems are
287broken which leads to messages like
288@example
289Name collision between 9826 9836
290@end example
291when @sc{Singular} is started. To fix this, you can get fixed termcap
292files from @uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils}
293by downloading the files termcap-<uname-description> and either
294replace your /etc/termcap file by the file found there, or view, and
295redo the respective changes by @code{diff}'ing the downloaded and the
296original file.
297
298@item For @code{ix86-Linux} systems:
299@*Due to some incompatibilities of shared libraries, the start-up of
300@sc{Singular} might fail with messages like
301@example
302  Can not find shared library ...
303@end example
304For DEBIAN systems, try to do
305@code{ln -s /usr/lib/libncurses.so /usr/lib/libncurses.so.4}.
306@*If this fails (and on other systems)
307download and install
308@code{Singular-@value{VERSION}-ix86-Linux-static.tar.gz}.
309
310@item For @code{AIX} systems:
311@*The default @code{info} program of the system is not GNU's texinfo
312browser which is used to display the on-line documentation in the
313@code{info} format. Therefore, the distribution of the AIX executable
314already contains the @code{info} browser program.
315If you remove this program, make sure that the GNU
316@code{info} program is executed if you call '@code{info}' from your shell.
317
318@item For any other troubles:
319@*Please send an email to @email{singular@@mathematik.uni-kl.de}
320and include the header which is displayed by starting up @sc{Singular}
321with the @code{-v} option, and a description of your machine (issue the
322command @code{uname -a} on your shell) in your report.
323@end itemize
324
325@include info.texi
326
327@ifclear singularmanual
328GOOD LUCK and ENJOY!
329Your @sc{Singular} team.
330@end ifclear
331
Note: See TracBrowser for help on using the repository browser.