Installation from sources in Cygwin64 - BrentBaccala/Singular GitHub Wiki
This page describes the installation of Singular from the latest sources from GitHub on Windows systems in the 64-bit version of Cygwin.
Use this if you want the latest release and cannot use binaries. Do not use this if you want to contribute to Singular.
This version of the instructions was tested on Windows 7 with Singular 4.
-
Run
setup-x86_64.exeand install (in addition to the standard selection) the following packages (you will be asked to resolve dependencies, answer yes):a. Tools used to download Singular and other packages:
wgetb. Tools necessary to compile Singular:
gcc-core,gcc-g++,automake,make,libtool,libreadline7,libreadline-develc. Scientific libraries used by Singular:
libgmp-devel,libmpfr-devel,mpfr -
Download Singular:
Create a directory for the Singular binaries we use here Singular4 in your home directory:
cd /homemkdir Singular4
Create a directory for the Singular sources and a temporary directory for third party libraries we use here /home/git/Singular4 and /home/tmp:
mkdir tmpmkdir sourcescd sourcesmkdir Singular4cd Singular4
Download Singular from the git repository:
wget ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/4-0-0/singular-4.0.0.tar.gztar xvfz singular-4.0.0.tar.gz
Although you can now compile Singular, we strongly recommend to install some more scientific packages (otherwise some features will not be available).
-
Install NTL:
Download NTL:
mkdir ntlcd ntlwget http://www.shoup.net/ntl/ntl-8.1.2.tar.gztar -xvf ntl-8.1.2.tar.gzcd ntl-8.1.2cd src
Compile NTL and install into the folder tmp in your home directory:
./configure DEF_PREFIX=/home/tmp NTL_GMP_LIP=on SHARED=onmakemake install
Return to the folder Singular4
cd ../../../
-
Install CDDLIB:
Download CDDLIB:
mkdir cddlibcd cddlibwget ftp://ftp.ifor.math.ethz.ch/pub/fukuda/cdd/cddlib-094g.tar.gztar -xvf cddlib-094g.tar.gzcd cddlib-094g
Compile cddlib and install into the folder tmp in your home directory:
./configure --prefix=/home/tmp --disable-staticmake -j 2make install
Return to the folder Singular4:
cd ../../
-
Install FLINT:
Create a directory and download FLINT:
mkdir flintcd flintwget http://flintlib.org/flint-2.4.4.tar.gztar xvfz flint-2.4.4.tar.gzcd flint-2.4.4
Compile flint and install into the folder tmp in your home directory
./configure --with-gmp=/usr --prefix=/home/tmp --disable-staticmake -j 2make install
Return to the folder Singular4
cd ../../
-
Download and install 4ti2 (used by some Singular commands for lattice computations):
Create a directory and download 4ti2:
mkdir 4ti2cd 4ti2wget http://www.4ti2.de/version_1.6/4ti2-1.6.tar.gztar xvfz 4ti2-1.6.tar.gzcd 4ti2-1.6
Compile 4ti2:
./configuremakemake install(requires write permissionsi to /usr, if you don't have ask your administrator to install 4ti2)
Return to the folder Singular4:
cd ../../
-
Compile Singular:
We specify the location of NTL, FLINT and the location to install the Singular binaries:
cd singular-4.0.0./configure --without-python --with-ntl=/home/tmp --with-flint=/home/tmp --prefix=/home/Singular4make -j 2make install
- Run the Singular binary
(this should now be located in the folder Singular4 in your home directory):
cd /home./Singular4/bin/Singular