Installation from sources in Debian - BrentBaccala/Singular GitHub Wiki

This page describes the installation of Singular from the sources of the latest release on Debian based systems (e.g. Ubuntu).

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 Ubuntu 13.04 for Singular 4.

  1. Install the necessary packages:

    (requires root privileges, if you do not have root access, ask your administator to install these packages, you may check with dpkg -l <package name> whether the package is installed already)

    a. Tools necessary to compile Singular:

    • sudo apt-get install build-essential
    • sudo apt-get install autoconf
    • sudo apt-get install autogen
    • sudo apt-get install libtool
    • sudo apt-get install libreadline6-dev
    • sudo apt-get install libglpk-dev

    b. Scientific libraries used by Singular:

    • sudo apt-get install libgmp-dev
    • sudo apt-get install libmpfr-dev
    • sudo apt-get install libcdd-dev
    • sudo apt-get install libntl-dev
    • sudo apt-get install flint-dev

    c. Third party math software called by Singular:

    • sudo apt-get install graphviz (visualization of graphs)
    • sudo apt-get install 4ti2 (optional)
  2. Download Singular:

    Create a directory for the Singular binaries, we use here Singular4 in your home directory:

    • cd
    • mkdir Singular4

    Create a directory for the Singular sources and temporary stuff, we use here sources/Singular4 in your home directory (if tmp exists, make sure that it does not contain any old stuff):

    • mkdir tmp
    • mkdir sources
    • cd sources
    • mkdir Singular4
    • cd Singular4

    Download Singular and unpack (substitute 4-0-0 with the current version)

    • wget ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/src/4-0-0/singular-4.0.0.tar.gz
    • tar xvfz singular-4.0.0.tar.gz

    Although you can now compile Singular, we strongly recommend to install FLINT (otherwise some features will not be available).

  3. Compile Singular:

    We specify the location of Flint (tmp in your home directory) and the location to install the Singular binaries (Singular4 in your home directory).

    We also build the gfanlib extension for convex polyhedral computations. To load this extension in Singular, do LIB "gfanlib.so";:

    • cd singular-4.0.0
    • ./configure --enable-gfanlib --prefix=$HOME/Singular4
    • make -j 2
    • make install
  4. Run the Singular binary:

    This should be located in the folder Singular4 in your home directory.

    • cd
    • ./Singular4/bin/Singular
  5. If you want to use the plotting tools Surfer and Surf follow these instructions.