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 | |
---|
19 | To install @sc{Singular} on a |
---|
20 | @ifset UNAME |
---|
21 | @value{_UNAME} |
---|
22 | @end ifset |
---|
23 | @ifclear UNAME |
---|
24 | Unix |
---|
25 | @end ifclear |
---|
26 | platform, you need the following two |
---|
27 | archives: |
---|
28 | @table @code |
---|
29 | @item Singular-@value{VERSION}-share.tar.gz |
---|
30 | contains 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 |
---|
34 | contains architecture dependent executables, like the @sc{Singular} |
---|
35 | program |
---|
36 | @ifclear UNAME |
---|
37 | where @code{@value{_UNAME}} is a description of the processor and operating system |
---|
38 | for which @sc{Singular} is compiled (e.g, @code{ix86-Linux}). Please contact us if |
---|
39 | you can not find an appropriate architecture dependent archive |
---|
40 | @end ifclear |
---|
41 | . |
---|
42 | @end table |
---|
43 | |
---|
44 | You can obtain these files from |
---|
45 | @url{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/}. |
---|
46 | |
---|
47 | @ifclear singularmanual |
---|
48 | @heading Important |
---|
49 | Please see |
---|
50 | @ifhtml |
---|
51 | @uref{COPYING.html, COPYING} |
---|
52 | @end ifhtml |
---|
53 | @ifnothtml |
---|
54 | the file COPYING contained in the distribution |
---|
55 | @end ifnothtml |
---|
56 | for license |
---|
57 | information on @sc{Singular}. In particular, notice that we only grant you |
---|
58 | permission 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} |
---|
60 | with the subject line (or, mail body) @code{register}. |
---|
61 | @end ifclear |
---|
62 | |
---|
63 | @heading To install SINGULAR |
---|
64 | |
---|
65 | Make sure that you have appr. 12MByte of free disk space and follow |
---|
66 | these steps. |
---|
67 | @enumerate |
---|
68 | @item |
---|
69 | Simply change to the directory in which you wish to install |
---|
70 | @sc{Singular} (usually wherever you install 3rd-party software): |
---|
71 | @smallexample |
---|
72 | cd /usr/local/ |
---|
73 | @end smallexample |
---|
74 | |
---|
75 | @sc{Singular} specific subdirectories will be created in such a way |
---|
76 | that multiple versions and multiple architecture dependent files |
---|
77 | of @sc{Singular} can peaceably coexist under the same @code{/usr/local/} |
---|
78 | tree. |
---|
79 | |
---|
80 | |
---|
81 | @item |
---|
82 | Unpack the archives: |
---|
83 | @smallexample |
---|
84 | gzip -dc Singular-@value{VERSION}-@value{_UNAME}.tar.gz | tar -pxf - |
---|
85 | gzip -dc Singular-@value{VERSION}-share.tar.gz | tar -pxf - |
---|
86 | @end smallexample |
---|
87 | If you have downloaded @code{Singular-@value{VERSION}-share.zip}, |
---|
88 | unpack with |
---|
89 | @smallexample |
---|
90 | unzip -u Singular-@value{VERSION}-share.zip |
---|
91 | @end smallexample |
---|
92 | |
---|
93 | This 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 | |
---|
111 | For the executable to work, the directory layout must look pretty much |
---|
112 | like this; the executable looks for "sibling" directories at run-time |
---|
113 | to figure out where its @sc{Singular} libraries and on-line |
---|
114 | documentation files are. These constraints on the local directory layout |
---|
115 | are necessary to avoid having to hardcode pathnames into the |
---|
116 | executables, or require that environment variables be set before |
---|
117 | running the executable. In particular, you should not move or copy |
---|
118 | the @sc{Singular} executables to another place, but use soft-links |
---|
119 | instead. |
---|
120 | @end enumerate |
---|
121 | |
---|
122 | The following steps are optional: |
---|
123 | |
---|
124 | @itemize |
---|
125 | @item |
---|
126 | Arrange that typing @code{Singular} at the shell prompt starts up the |
---|
127 | installed @sc{Singular} executable. |
---|
128 | |
---|
129 | If you have root permission, do: |
---|
130 | @smallexample |
---|
131 | ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/Singular /usr/local/bin/Singular-@value{VERSION} |
---|
132 | ln -s `pwd`/Singular/@value{VERSION}/@value{_UNAME}/ESingular /usr/local/bin/ESingular-@value{VERSION} |
---|
133 | ln -s /usr/local/bin/Singular-@value{VERSION} /usr/local/bin/Singular |
---|
134 | ln -s /usr/local/bin/ESingular-@value{VERSION} /usr/local/bin/ESingular |
---|
135 | @end smallexample |
---|
136 | |
---|
137 | Otherwise, append the directory |
---|
138 | @code{`pwd`/Singular/@value{VERSION}/@value{_UNAME}/} to your @code{$PATH} |
---|
139 | environment variable. For the @code{csh} (or, @code{tcsh}) shell do: |
---|
140 | @smallexample |
---|
141 | set path=(`pwd`/Singular/@value{VERSION}/@value{_UNAME} $path) |
---|
142 | @end smallexample |
---|
143 | For the @code{bash} (or, @code{ksh}) shell do: |
---|
144 | @smallexample |
---|
145 | export PATH=`pwd`/Singular/@value{VERSION}/@value{_UNAME}/:$PATH |
---|
146 | @end smallexample |
---|
147 | |
---|
148 | You 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, |
---|
151 | so 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 |
---|
155 | soft-links instead. |
---|
156 | |
---|
157 | @item |
---|
158 | If you wish to enable any of following features of |
---|
159 | @sc{Singular}, make sure that the respective programs (or, |
---|
160 | shared 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 |
---|
166 | 20 or higher, or, @uref{www.xemacs.org,Xemacs} version 20 or |
---|
167 | higher |
---|
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} |
---|
175 | library, 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} |
---|
179 | version 0.9 or higher (only available for Linux and Solaris). |
---|
180 | @end multitable |
---|
181 | |
---|
182 | Notice 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 | |
---|
187 | By default, on-line help is displayed in the @code{html} format using |
---|
188 | the @code{netscape} program. |
---|
189 | |
---|
190 | However, this behaviour can be customized in several ways |
---|
191 | using the @sc{Singular} commands @code{system("--allow-net", 1)} and |
---|
192 | @code{system("--browser",<browser>")} (or, by starting up @sc{Singular} |
---|
193 | with the respective command line options). |
---|
194 | |
---|
195 | In particular, creating the file |
---|
196 | @code{Singular/@value{VERSION}/LIB/.singularrc/} and putting the |
---|
197 | @sc{Singular} command |
---|
198 | @smallexample |
---|
199 | system("--allow-net", 1); |
---|
200 | @end smallexample |
---|
201 | in it, allows the on-line help system to fetch its @code{html} pages |
---|
202 | from @uref{www.mathemtaik.uni-kl.de/~zca/Singular, Singular's WWW home site} |
---|
203 | in case its local html pages are not found. That is, you may delete your |
---|
204 | local html pages, after setting this option. |
---|
205 | |
---|
206 | See 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 |
---|
212 | the sections @emph{The online help system}, @emph{Command line options}, and |
---|
213 | @emph{Startup sequence} in the @sc{Singular} manual |
---|
214 | @end ifclear |
---|
215 | for more details on customizing the on-line help system. |
---|
216 | |
---|
217 | @item |
---|
218 | Add the line |
---|
219 | @smallexample |
---|
220 | * Singular:(singular.hlp). A system for polynomial computations |
---|
221 | @end smallexample |
---|
222 | to 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} |
---|
225 | to the directory of your @code{dir} file. |
---|
226 | @*This assures that the |
---|
227 | @sc{Singular} manual can be accessed from stand-alone texinfo |
---|
228 | browser programs such as @code{info} or @code{Emacs}: |
---|
229 | @end itemize |
---|
230 | |
---|
231 | @heading Troubleshooting |
---|
232 | |
---|
233 | |
---|
234 | |
---|