source: git/doc/INSTALL_osx.texi @ b6b982d

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