Installation
Sidef can be installed automatically from the CPAN, by invoking the following command:
1
$ cpan Sidef
Copied!
If the testing takes a long time, add the -T flag to build and install Sidef without testing:
1
$ cpan -T Sidef
Copied!
When the cpan command is not available, try:
1
$ perl -MCPAN -e "CPAN::Shell->install(q{Sidef})"
Copied!
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:
1
$ perl Build.PL
2
# ./Build installdeps
3
# ./Build install
Copied!
When Module::Build is not installed, try:
1
$ perl Makefile.PL
2
$ make test
3
# make install
Copied!

Android installation

It's also possible to install Sidef on Android, by installing Termux and executing the following commands:
1
$ pkg install perl make clang libgmp libmpfr libmpc
2
$ cpan -T Sidef
Copied!
If the installation succeeded, the sidef command should be available:
1
$ sidef -h
Copied!
Last modified 2mo ago