source: git/doc/INSTALL_unix.texi @ 4e654a2

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