source: git/doc/INSTALL_unix.texi @ a89a22c

spielwiese
Last change on this file since a89a22c was a89a22c, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* as we go along git-svn-id: file:///usr/local/Singular/svn/trunk@3929 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 8.0 KB
Line 
1@comment -*-texinfo-*-
2@comment $Id: INSTALL_unix.texi,v 1.1 1999-11-26 17:45:49 obachman Exp $
3@comment this file contains the installation instruction for Singular on
4@comment Unix
5@include version.texi
6
7@ifclear singularmanual
8@majorheading UNIX INSTALLATION INSTRUCTIONS FOR SINGULAR VERSION @value{VERSION}
9@end ifclear
10
11@ifclear UNAME
12@set _UNAME <uname>
13@end ifclear
14
15@ifset UNAME
16@set _UNAME @value{UNAME}
17@end ifset
18
19To install @sc{Singular} on a
20@ifset UNAME
21@value{_UNAME}
22@end ifset
23@ifclear UNAME
24Unix
25@end ifclear
26platform, you need the following two
27archives:
28@table @code
29@item Singular-@value{VERSION}-share.tar.gz
30contains architecture independent data like documentation and libraries
31(alternativly, you may also download
32@code{Singular-@value{VERSION}-share.zip}).
33@item Singular-@value{VERSION}-@value{_UNAME}.tar.gz
34contains architecture dependent executables, like the @sc{Singular}
35program
36@ifclear UNAME
37 where @code{@value{_UNAME}} is a description of the processor and operating system
38for which @sc{Singular} is compiled (e.g, @code{ix86-Linux}). Please contact us if
39you can not find an appropriate architecture dependent archive
40@end ifclear
41.
42@end table
43
44You can obtain these files from
45@url{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/}.
46
47@ifclear singularmanual
48@heading Important
49Please see
50@ifhtml
51@uref{COPYING.html, COPYING}
52@end ifhtml
53@ifnothtml
54the file COPYING contained in the distribution
55@end ifnothtml
56for license
57information on @sc{Singular}. In particular, notice that we only grant you
58permission to use @sc{Singular} if you have registered yourself as a
59@sc{Singular} user by sending email to @email{singular@@mathematik.uni-kl.de}
60with the subject line (or, mail body) @code{register}.
61@end ifclear
62
63@heading To install SINGULAR
64
65Make sure that you have appr. 12MByte of free disk space and follow
66these steps.
67@enumerate
68@item
69Simply change to the directory in which you wish to install
70@sc{Singular} (usually wherever you install 3rd-party software):
71@smallexample
72cd /usr/local/ 
73@end smallexample
74
75@sc{Singular} specific subdirectories will be created in such a way
76that multiple versions and multiple architecture dependent files
77of @sc{Singular} can peaceably coexist under the same @code{/usr/local/}
78tree.
79
80
81@item
82Unpack the archives:
83@smallexample
84gzip -dc Singular-@value{VERSION}-@value{_UNAME}.tar.gz | tar -pxf -
85gzip -dc Singular-@value{VERSION}-share.tar.gz | tar -pxf -
86@end smallexample
87If you have downloaded @code{Singular-@value{VERSION}-share.zip},
88unpack with
89@smallexample
90unzip -u Singular-@value{VERSION}-share.zip
91@end smallexample
92
93This creates the following
94@multitable @columnfractions .36 .64
95@item (sub)directories
96@tab  which contain
97@item @code{Singular/@value{VERSION}/@value{_UNAME}}
98@tab @code{Singular} and @code{ESingular} programs
99@item @code{Singular/@value{VERSION}/LIB}
100@tab @sc{Singular} libraries (@code{*.lib} files)
101@item @code{Singular/@value{VERSION}/emacs}
102@tab files for the @sc{Singular} Emacs user interface
103@item @code{Singular/@value{VERSION}/info}
104@tab info files of @sc{Singular} manual
105@item @code{Singular/@value{VERSION}/html}
106@tab html files of @sc{Singular} manual
107@item @code{Singular/@value{VERSION}/doc}
108@tab miscellaneous documentation files
109@end multitable
110
111For the executable to work, the directory layout must look pretty much
112like this; the executable looks for "sibling" directories at run-time
113to figure out where its @sc{Singular} libraries and on-line
114documentation files are.  These constraints on the local directory layout
115are necessary to avoid having to hardcode pathnames into the
116executables, or require that environment variables be set before
117running the executable. In particular, you should not move or copy
118the @sc{Singular} executables to another place, but use soft-links
119instead.
120@end enumerate
121
122The following steps are optional:
123
124@itemize
125@item
126Arrange that typing @code{Singular} at the shell prompt starts up the
127installed @sc{Singular} executable.
128
129If you have root permission, do:
130@smallexample     
131ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/Singular  /usr/local/bin/Singular-@value{VERSION}
132ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/ESingular  /usr/local/bin/ESingular-@value{VERSION}
133ln -s /usr/local/bin/Singular-@value{VERSION} /usr/local/bin/Singular
134ln -s /usr/local/bin/ESingular-@value{VERSION} /usr/local/bin/ESingular
135@end smallexample
136       
137Otherwise, append the directory
138@code{`pwd`/Singular/@value{VERSION}/@value{_UNAME}/} to your @code{$PATH}
139environment variable. For the @code{csh} (or, @code{tcsh}) shell do:
140@smallexample
141set path=(`pwd`/Singular/@value{VERSION}/@value{_UNAME} $path)
142@end smallexample
143For the @code{bash} (or, @code{ksh}) shell do:
144@smallexample 
145export PATH=`pwd`/Singular/@value{VERSION}/@value{_UNAME}/:$PATH
146@end smallexample
147
148You also might want to adjust your personal start-up files
149(@code{~/.cshrc} for @code{csh}, @code{.tcshrc} for @code{tcsh},
150@code{.profile} for @code{bash}) accordingly,
151so that the @code{$PATH} variable is set automatically each time you login.
152
153@strong{IMPORTANT:} Do @emph{never} move or copy the file
154@code{Singular/@value{VERSION}/@value{_UNAME}/Singular} to another place, but use
155soft-links instead.
156
157@item
158If you wish to enable any of following features of
159@sc{Singular}, make sure that the respective programs (or,
160shared libraries) are installed on your system:
161
162@multitable @columnfractions .5 .5
163@item @strong{Feature} @tab @strong{Requires}
164@item running @code{ESingular}, or @code{Singular} within Emacs
165@tab @uref{www.fsf.org/software/emacs/emacs.html,Emacs} version
16620 or higher, or, @uref{www.xemacs.org,Xemacs} version 20 or
167higher
168@item on-line @code{html} help
169@tab @uref{www.netscape.com, netscape} browser
170@item on-line @code{info} help
171@tab @uref{www.texinfo.org, info}, or
172@uref{math-www.uni-paderborn.de/~axel/tkinfo/, tkinfo} texinfo browser programs
173@item TAB completion and history mechanism of ASCII-terminal interface
174@tab shared @uref{ftp://ftp.de.uu.net/pub/gnu/readline/, readline}
175library, i.e. @code{/usr/lib/libreadline.so}
176@item visulization of curves and surfaces with @code{surf} (i.e., usage of @sc{Singular} library @code{surf.lib})
177@tab
178@uref{http://www.mathematik.uni-mainz.de/AlgebraischeGeometrie/surf/surf.shtml,surf}
179version 0.9 or higher (only available for Linux and Solaris).
180@end multitable
181
182Notice that you may also download most of these programs from
183@uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils/}.
184
185@item Customize the on-line help system:
186
187By default, on-line help is displayed in the @code{html} format using
188the @code{netscape} program.
189
190However, this behaviour can be customized in several ways
191using the @sc{Singular} commands @code{system("--allow-net", 1)} and
192@code{system("--browser",<browser>")} (or, by starting up @sc{Singular}
193with the respective command line options).
194
195In particular, creating the file
196@code{Singular/@value{VERSION}/LIB/.singularrc/} and putting the
197@sc{Singular} command
198@smallexample
199system("--allow-net", 1);
200@end smallexample
201in it, allows the on-line help system to fetch its @code{html} pages
202from @uref{www.mathemtaik.uni-kl.de/~zca/Singular, Singular's WWW home site}
203in case its local html pages are not found. That is, you may delete your
204local html pages, after setting this option.
205
206See also
207@ifset singularmanual
208@ref{The online help system}, @ref{Command line options}, and
209@ref{Startup sequence}
210@end ifset
211@ifclear singularmanual
212the sections @emph{The online help system}, @emph{Command line options}, and
213@emph{Startup sequence} in the @sc{Singular} manual
214@end ifclear
215for more details on customizing the on-line help system.
216
217@item
218Add the line
219@smallexample
220* Singular:(singular.hlp).     A system for polynomial computations
221@end smallexample
222to your system-wide @code{dir} file (usually @code{/usr/info/dir} or
223@code{/usr/local/info/dir} and  copy or soft-link the file
224@code{Singular/@value{VERSION}/info/singular.hlp}
225to the directory of your @code{dir} file.
226@*This assures that the
227@sc{Singular} manual can be  accessed from stand-alone texinfo
228browser programs such as @code{info} or @code{Emacs}:
229@end itemize
230
231@heading Troubleshooting
232
233
234
Note: See TracBrowser for help on using the repository browser.