Installation

Sidef can be installed automatically from the CPAN, by invoking the following command:

$ cpan Sidef

If the testing takes a long time, add the -T flag to build and install Sidef without testing:

$ cpan -T Sidef

When the cpan command is not available, try:

$ perl -MCPAN -e "CPAN::Shell->install(q{Sidef})"

IMPORTANT: Sidef needs the GMP, MPFR and MPC C libraries.

Installing from git source

To install Sidef manually, download the latest version, unzip it and follow the installation steps:

$ perl Build.PL
# ./Build installdeps
# ./Build install

When Module::Build is not installed, try:

$ perl Makefile.PL
$ make test
# make install

Linux installation

Arch Linux

Sidef is available on the AUR and can be installed using an AUR helper, like trizen:

$ trizen -S sidef

Debian / Ubuntu / Linux Mint

On Debian-based distributions, Sidef can be installed from the CPAN, by executing the following commands:

$ sudo apt install libgmp-dev libmpfr-dev libmpc-dev libc-dev cpanminus
$ sudo cpanm -n Sidef

Android installation

It's also possible to install Sidef on Android, by installing Termux and executing the following commands:

$ pkg install perl make clang libgmp libmpfr libmpc
$ cpan -T Sidef

If the installation succeeded, the sidef command should be available:

$ sidef -h

Last updated