- Since there is no Debian binary package, you should download the source code. Here the link.
- When it finishes, open a terminal
C-M-t
(sorry for the emacs notation, it means Ctrl+Alt+t
)
- Go to the Downloads folder (or the right place where the tar file was saved)
- Move to the
sage-5.12
folder just created
- Install the dependencies of the first line. Optionally install
LaTeX
and ImageMagick
using the second line. (NOTE: superuser power is needed to run the below code)
$ sudo apt-get install -y gcc perl m4 dpkg-dev
$ sudo apt-get install -y texlive imagemagick
- In machines with more than one core, the instruction to perform parallel compilation is (yo should change the “4” by the amount of cores in your machine)
- Now is time to compile the code.For a local compilation, run
For a
You can relax, go and have a coffee, because the compilation may longs one hour (or more depending of the machine specifications).
- For running the software after the installation is complete, run (on the SAGE directory) the command
- I don’t like to move to the SAGE directory every time and then run the
./sage
command, therefore, I tend to create an alias on my ~/.bash_aliases
file,
$ echo "alias sage="sh ~/Downloads/sage-5.12/sage" >> ~/.bash_aliases
This command adds the line alias sage="sh ~/Downloads/sage-5.12/sage
at the end of the file ~/.bash_aliases
, you can do it by hand with your favourite editor (gedit, emacs, nano, vim, …)
- If you refresh your terminal (or open a new one) you just have to run the command
sage
to start SAGE. Additionally, the notebook environment can be started directly from the terminal by using the flag -n
,
Hope you find this post useful! Remember to leave your comments or suggestions.
Enjoy!