.. _spkg__prereq:

_prereq: Represents system packages required for installing SageMath from source
================================================================================

Description
-----------

This script package represents the minimal requirements (system packages)
for installing SageMath from source.

Type
----

standard


Dependencies
------------


Version Information
-------------------


Equivalent System Packages
--------------------------

arch:

.. CODE-BLOCK:: bash

    $ sudo pacman -S  binutils make m4 perl python tar bc gcc which


conda:

.. CODE-BLOCK:: bash

    $ conda install  compilers make m4 perl python tar bc pkg-config


cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install binutils make m4 python39-urllib3 python39 perl perl-ExtUtils-MakeMaker tar gcc-core gcc-g++ findutils which libcrypt-devel libiconv-devel


Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  binutils make m4 perl python3 tar bc gcc g++ ca-certificates


Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  binutils make m4 python3 perl perl-ExtUtils-MakeMaker tar gcc gcc-c++ findutils which diffutils perl-IPC-Cmd


freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install gmake automake bash dash python


gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge sys-devel/binutils sys-libs/binutils-libs sys-devel/make dev-scheme/guile dev-libs/libffi app-arch/tar sys-devel/gcc dev-libs/mpc sys-libs/glibc sys-kernel/linux-headers dev-lang/perl sys-devel/m4 sys-devel/bc dev-lang/python sys-devel/flex app-misc/ca-certificates dev-libs/libxml2 sys-apps/findutils sys-apps/which sys-apps/diffutils


homebrew:

nix:

.. CODE-BLOCK:: bash

    $ nix-env --install binutils gnumake gnum4 perl python3 gnutar bc gcc bash


opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install binutils make m4 perl python3 tar bc which glibc-locale-base gcc gcc-c++ ca-certificates gzip findutils diffutils


slackware:

.. CODE-BLOCK:: bash

    $ sudo slackpkg install binutils make guile gc libffi "gcc-[0-9]" gcc-11 gcc-g++ gcc-g++-11 libmpc glibc kernel-headers perl m4 bc python-2.7 python3 flex ca-certificates pkg-config libxml2 cyrus-sasl


void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  bc binutils gcc libgomp-devel m4 make perl pkg-config python3 tar which



If the system package is installed, ./configure will check whether it can be used.

