Downloading SINGULAR Archives
To install Singular on a Unix (inluding Linux and Mac Os X) platform, you need the following two archives:
Singular-3-x-x-share.tar.gz(system independent part)Singular-3-x-x-architecture.tar.gz(system dependent part)
where you have to replace the following:
- "3-x-x" has to be replaced by the version number of the Singular system to be installed
- "architecture" has to be replaced according to the following table:
These (and other) archives can be downloaded from http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/UNIX.Architecture Description of System ix86-Linux32-bit Linux System on Intel Pentium (or compatible) x86_64-Linux64-bit Linux System on AMD 64 (or compatible) SunOS-5Solaris 8 on 32-bit Sparc SunOS-5-64Solaris 8 on 64-bit UltraSparc ix86-freebsd32-bit FreeBSD on Intel Pentium (or compatible) AIX-4AIX 4 IA64-Linux64-bit Linux System on Itanium 2 ix86Mac-darwinMac Os X 10.5 on Intel
For example an installation of Singular 3-1-6 on a 32-bit Linux System needs the file named "Singular-3-1-6-ix86-Linux.tar.gz".
Please contact us if you cannot find an archive appropriate for your architecture.
Installing SINGULAR
Make sure that you have approximately 12MByte of free disk space and follow these steps:
- Change to the directory where you wish to install Singular, for example:
(this requires superuser privileges), orcd /usr/local
(requires no superuser privileges).mkdir install; cd installSingular specific subdirectories will be created in such a way that multiple versions and multiple architecture dependent files of Singular can peaceably coexist under the same
/usr/localtree. - Unpack the archives:
(Do not forget to replace the string architecture as above.)gzip -dc path-to-your-download-folder/Singular-3-x-x-architecture.tar.gz | tar -pxf -gzip -dc path-to-your-download-folder/Singular-3-x-x-share.tar.gz | tar -pxf -
This creates the directory Singular/3-x-x with the following subdirectories- (contains
SingularandESingularexecutables) LIB(contains Singular libraries -*.libfiles)emacs(files for the Singular Emacs user interface)info(info files of Singular manual)html(html files of Singular manual)doc(miscellaneous documentation files)examples(Singular examples -*.singfiles)
For the executable to work, the directory layout must look pretty much like this; the executable looks for "sibling" directories at run-time to figure out where its Singular libraries and on-line documentation files are. These constraints on the local directory layout are necessary to avoid having to hard-code pathnames into the executables, or require that environment variables be set before running the executable. In particular, you must not move or copy the Singular executables to another place, but use soft-links instead.
- (contains
The following steps are optional:
-
Arrange that typing
If you have superuser privileges, do:Singularat the shell prompt starts up the installed Singular executable.
Otherwise, append the directoryln -s `pwd`path-to-your-installation-folder/Singular/3-x-x/architecture/Singular /usr/local/bin/Singular-3-x-xln -s `pwd`path-to-your-installation-folder/Singular/3-x-x/architecture/ESingular /usr/local/bin/ESingular-3-x-xln -s /usr/local/bin/Singular-3-x-x /usr/local/bin/Singularln -s /usr/local/bin/ESingular-3-x-x /usr/local/bin/ESingular`pwd`path-to-your-installation-folder/Singular/3-x-x/architecture/to your$PATHenvironment variable. For thecsh(or,tcsh) shell do:
For theset path=(`pwd`path-to-your-installation-folder/Singular/3-x-x/architecture $path)bash(or,ksh) shell do:export PATH=`pwd`path-to-your-installation-folder/Singular/3-x-x/architecture/:$PATHYou might also want to adjust your personal start-up files (
~/.cshrcforcsh,~/.tcshrcfortcsh, or~/.profileforbash) accordingly, so that the$PATHvariable is set automatically each time you login.IMPORTANT: Do never move or copy the file
Singular/3-x-x/architecture/Singularto another place, but use soft-links instead. -
If you want to use any of following features of Singular, make sure that the respective programs are installed on your system:
Most of these programs can be downloaded from http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/utils/.Feature Requires running ESingular, orSingularwithin EmacsEmacs version 20 or higher, or, XEmacs version 20.3 or higher (ESingular is only included in the Linux distribution, on other Unix platforms you can download the Singular emacs lisp files but we give no warranties for specific platforms). on-line infohelpinfo, or tkinfo texinfo browser programs TAB completion and history mechanism of ASCII-terminal interface shared readline library, i.e. /usr/lib/libreadline.sovisualization of curves and surfaces surf version 0.9 or higher (only available for Linux and Solaris). -
Customize the on-line help system:
By default, on-line help is displayed in the first available help browser defined in
Singular/3-x-x/LIB/help.cnf.This behavior can be customized in several ways using the Singular commands
system("--browser",)andsystem("--allow-net", 1)(or, by starting up Singular with the respective command line options).In particular, creating the file
Singular/3-x-x/LIB/.singularrcand putting the Singular commandsystem("--allow-net", 1);in it, allows the on-line help system to fetch itshtmlpages from Singular's web site in case its local html pages are not found.We refer to the online manual for more details on customizing the on-line help system.
-
Assure that the Singular manual can be accessed from stand-alone texinfo browser programs such as
Add the lineinfoorEmacs:
to your system-wide* Singular:(singular.hlp). A system for polynomial computationsdirfile (usually/usr/info/diror/usr/local/info/dirand copy or soft-link the fileSingular/3-x-x/info/singular.hlpto the directory of yourdirfile.
This is not necessary for the use of the help system from withinSingular.
Troubleshooting
-
General: Singular can not find its libraries or on-line help
- Make sure that you have read and/or execute permission the files and directories of the Singular distribution. If in doubt,
cdto the directory where you unpacked Singular, and do (as root, if necessary):chmod -R a+rX Singular - Start up Singular, and issue the command
system("Singular");. If this does not return the correct and expanded location of the Singular executable, then you found a bug in Singular, which we ask you to report (see below). - Check whether the directories containing the libraries and on-line help files can be found by Singular: If
$bindirdenotes the directory where the Singular executable resides, then Singular looks for library files as follows:
(0) the current directory
(1) all dirs of the environment variable SINGULARPATH
(2)$bindir/LIB
(3)$bindir/../LIB
(4)/usr/local/Singular/3-x-x/LIB
(4)/usr/local/Singular/LIB
The on-lineinfofiles need to be at$bindir/../infoand thehtmlpages at$bindir/../html.
You can inspect the found library and
info/htmldirectories by starting up Singular with the--versionoption, or by issuing the Singular commandsystem("--version"); . - Make sure that you have read and/or execute permission the files and directories of the Singular distribution. If in doubt,
-
Under SuSE-Linux, ESingular does not display a prompt:
This is due to the very restrictive access rights of/dev/pty*of the standard SuSE distribution (starting from version 6.3 on). As root, do one of the following: Either
or,chmod 666 /dev/pty*chmod g+s $(which emacs) chgrp tty $(which emacs) chmod g+s $(which xemacs) chgrp tty $(which xemacs) -
For
TheHPUXsystems:/etc/termcapfiles which are pre-installed on these systems are broken which leads to messages like
when Singular is started. To fix this, you can get fixed termcap files from ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils by downloading the files termcap- and either replace your /etc/termcap file by the file found there, or view, and redo the respective changes byName collision between 9826 9836diff'ing the downloaded and the original file. -
For
Due to some incompatibilities of shared libraries, the start-up of Singular might fail with messages likeix86-Linuxsystems:
For DEBIAN systems, try to doCan not find shared library ...ln -s /usr/lib/libncurses.so /usr/lib/libncurses.so.4.
If this fails (and on other systems) download and installSingular-3-x-x-ix86-Linux-static.tar.gz. -
For
The defaultAIXsystems:infoprogram of the system is not GNU's texinfo browser which is used to display the on-line documentation in theinfoformat. Therefore, the distribution of the AIX executable already contains theinfobrowser program. If you remove this program, make sure that the GNUinfoprogram is executed if you call 'info' from your shell. -
For any other troubles:
Please send an email to singular@mathematik.uni-kl.de and include the header which is displayed by starting up Singular with the-voption, and a description of your machine (issue the commanduname -aon your shell) in your report.
Download 3-1-6