Sidef can be installed automatically from the CPAN, by invoking the following command:
If the testing takes a long time, add the -T flag to build and install Sidef without testing:
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
Sidef is available on the AUR and can be installed using an AUR helper, like trizen:
Debian / Ubuntu / Linux Mint
On Debian-based distributions, Sidef can be installed from the CPAN, by executing the following commands:
Android installation
It's also possible to install Sidef on Android, by installing Termux and executing the following commands:
If the installation succeeded, the sidef command should be available: