source: git/doc/INSTALL_osx.texi @ 4f006f

spielwiese
Last change on this file since 4f006f was 494c23, checked in by Eric Westenberger <westenb@…>, 22 years ago
*westenb: Removed ESingular parts and minor changes git-svn-id: file:///usr/local/Singular/svn/trunk@6071 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 9.0 KB
Line 
1@comment -*-texinfo-*-
2@comment $Id: INSTALL_osx.texi,v 1.3 2002-04-23 13:28:46 westenb Exp $
3@c FILE: INSTALL_unix.texi
4@c PURPOSE: Installation instruction for Singular on MacOS X
5@c
6
7@ifclear VERSION
8@include version.texi
9@end ifclear
10
11@ifclear singularmanual
12@majorheading MacOS X 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
24@ifset UNAME
25@value{_UNAME}
26@end ifset
27@ifclear UNAME
28MacOS X
29@end ifclear
30, 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), for example:
63@smallexample
64cd /usr/local
65or
66mkdir install;cd install
67(you do not need root privileges in this case)
68@end smallexample
69@sc{Singular} specific subdirectories will be created in such a way
70that multiple versions and multiple architecture dependent files
71of @sc{Singular} can peaceably coexist under the same @code{/usr/local}
72tree.
73
74@item
75Unpack the archives:
76@smallexample
77gzip -dc <path_to>/Singular-@value{VERSION}-@value{_UNAME}.tar.gz | tar -pxf -
78gzip -dc <path_to>/Singular-@value{VERSION}-share.tar.gz | tar -pxf -
79@end smallexample
80@c version 2-0-x does not have *-share.zip:
81@c If you have downloaded @code{Singular-@value{VERSION}-share.zip},
82@c unpack with
83@c @smallexample
84@c unzip -u Singular-@value{VERSION}-share.zip
85@c @end smallexample
86This creates the the directory Singular/@value{VERSION} with
87@multitable @columnfractions .36 .64
88@item (sub)directories
89@tab  which contain
90@item @code{@value{_UNAME}}
91@tab @code{Singular} executetable
92@item @code{LIB}
93@tab @sc{Singular} libraries (@code{*.lib} files)
94@item @code{emacs}
95@tab files for the @sc{Singular} Emacs user interface
96@item @code{info}
97@tab info files of @sc{Singular} manual
98@item @code{html}
99@tab html files of @sc{Singular} manual
100@item @code{doc}
101@tab miscellaneous documentation files
102@item @code{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 /usr/local/bin/Singular-@value{VERSION} /usr/local/bin/Singular
128@end smallexample
129        Otherwise, append the directory
130@code{`pwd`/Singular/@value{VERSION}/@value{_UNAME}/} to your @code{$PATH}
131environment variable. For the @code{csh} (or, @code{tcsh}) shell do:
132@smallexample
133set path=(`pwd`/Singular/@value{VERSION}/@value{_UNAME} $path)
134@end smallexample
135For the @code{bash} (or, @code{ksh}) shell do:
136@smallexample
137export PATH=`pwd`/Singular/@value{VERSION}/@value{_UNAME}/:$PATH
138@end smallexample
139You also might want to adjust your personal start-up files
140(@code{~/.cshrc} for @code{csh}, @code{~/.tcshrc} for @code{tcsh}, or
141@code{~/.profile} for @code{bash}) accordingly,
142so that the @code{$PATH} variable is set automatically each time you login.
143
144@strong{IMPORTANT:} Do @emph{never} move or copy the file
145@code{Singular/@value{VERSION}/@value{_UNAME}/Singular} to another
146place, but use soft-links instead.
147
148@item
149If you wish to use any of following features of
150@sc{Singular}, make sure that the respective programs are installed on your system:
151
152@multitable @columnfractions .5 .5
153@item @strong{Feature} @tab @strong{Requires}
154
155@item on-line @code{html} help
156@tab @uref{http://www.netscape.com,,netscape} browser
157@item on-line @code{info} help
158@tab @uref{http://www.texinfo.org,,info}, or
159@uref{http://math-www.uni-paderborn.de/~axel/tkinfo/,,tkinfo} texinfo browser programs
160@item TAB completion and history mechanism of ASCII-terminal interface
161@tab shared @uref{ftp://ftp.de.uu.net/pub/gnu/readline/,,readline}
162library, i.e. @code{/usr/lib/libreadline.so}
163@end multitable
164You may download most of these programs from
165@display
166@uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils/}.
167@end display
168
169@item Customize the on-line help system:
170
171By default, on-line help is displayed in the @code{html} format using
172the @code{netscape} program.
173
174However, this behavior can be customized in several ways
175using the @sc{Singular} commands @code{system("--browser",<browser>)}
176and @code{system("--allow-net", 1)} (or, by starting up @sc{Singular}
177with the respective command line options).
178
179In particular, creating the file
180@code{Singular/@value{VERSION}/LIB/.singularrc} and putting the
181@sc{Singular} command
182@smallexample
183system("--allow-net", 1);
184@end smallexample
185in it, allows the on-line help system to fetch its @code{html} pages
186from @uref{http://www.singular.uni-kl.de, Singular's WWW
187home site}
188in case its local html pages are not found. That is, you may delete your
189local html pages, after setting this option.
190
191See also
192@ifset singularmanual
193@ref{The online help system}, @ref{Command line options}, and
194@ref{Startup sequence},
195@end ifset
196@ifclear singularmanual
197the sections @emph{The online help system}, @emph{Command line options}, and
198@emph{Startup sequence} in the @sc{Singular} manual
199@end ifclear
200for more details on customizing the on-line help system.
201
202@item
203Add the line
204@smallexample
205* Singular:(singular.hlp).     A system for polynomial computations
206@end smallexample
207to your system-wide @code{dir} file (usually @code{/usr/info/dir} or
208@code{/usr/local/info/dir} and  copy or soft-link the file
209@code{Singular/@value{VERSION}/info/singular.hlp}
210to the directory of your @code{dir} file.
211@*This assures that the
212@sc{Singular} manual can be  accessed from stand-alone texinfo
213browser programs such as @code{info} or @code{Emacs}.
214(It is not necessary for the use of the help system from within @code{Singular}.)
215@end itemize
216
217@heading Troubleshooting
218
219@itemize @bullet
220@item General: @sc{Singular} can not find its libraries or on-line help
221@enumerate
222@item
223Make sure that you have read and/or execute permission the files and
224directories of the Singular distribution. If in doubt, @code{cd} to the
225directory where you unpacked @sc{Singular}, and do (as root, if
226necessary):
227@smallexample
228chmod -R a+rX Singular
229@end smallexample
230@item
231Start up @sc{Singular}, and issue the command @code{system("Singular");}.
232If this does not return the correct and expanded location of the
233@sc{Singular} executable, then you found a bug in @sc{Singular}, which we
234ask you to report (see below).
235@item
236Check whether the directories containing the libraries and on-line help
237files can be found by @sc{Singular}: If @code{$bindir} denotes the
238directory where the @sc{Singular} executable resides, then @sc{Singular}
239looks for library files as follows:
240@* (0) the current directory
241@* (1) all dirs of the environment variable SINGULARPATH
242@* (2) @code{$bindir/LIB}
243@* (3) @code{$bindir/../LIB}
244@* (4) @code{/usr/local/Singular/@value{VERSION}/LIB}
245@* (4) @code{/usr/local/Singular/LIB}
246@* The on-line @code{info} files need to be at  @code{$bindir/../info} and the
247@code{html} pages at @code{$bindir/../html}.
248@end enumerate
249
250You can inspect the found library and @code{info}/@code{html}
251directories by starting up @sc{Singular} with the
252@code{--version} option, or by issuing the @sc{Singular} command
253@code{system("--version");}.
254
255@item For any other troubles:
256@*Please send an email to @email{singular@@mathematik.uni-kl.de}
257and include the header which is displayed by starting up @sc{Singular}
258with the @code{-v} option, and a description of your machine (issue the
259command @code{uname -a} on your shell) in your report.
260@end itemize
261
262@include info.texi
263
264@ifclear singularmanual
265GOOD LUCK and ENJOY!
266Your @sc{Singular} team.
267@end ifclear
268
Note: See TracBrowser for help on using the repository browser.