**SAGE**

^{1}

*v.5.12*on my laptop which runs Debian. Here I describe the procedure.

- 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)

$ cd ~/Downloads

- Untar the file

$ tar xvf sage-5.12.tar

- Move to the
`sage-5.12`

folder just created

cd sage-5.12/

- Go to the
- 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)
$ export MAKE="make -j4"

- Now is time to compile the code.For a local compilation, run
make

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
$ ./sage

- 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`

,$ sage -n

- I don’t like to move to the

Hope you find this post useful! Remember to leave your comments or suggestions.

Enjoy!

## Footnotes:

^{1}SAGE is an

**open source**mathematical software which allows numerical and symbolic manipulations