source: git/doc/INSTALL_unix.texi @ fc94e1a

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