Installing sage on ubuntu

Written By Smart| 12 October 2009| No Comment

Sage is a free open-source  mathematics software.Sage can be used to study general and advanced, pure and applied mathematics. This includes a huge range of mathematics, including algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more.

Installing sage on Ubuntu:

Prerequisites :

gcc
make
m4
perl
ranlib
tar
ssh-keygen
latex

To check whether the instance is installed m4, m4 which type on the command line. When you see an error, it means he has not been installed. Line commands to install the above (if not yet installed), type the following lines:

admin@smartproteam~$sudo apt get install-gcc-4.2-base

admin@smartproteam~$sudo apt-get install make

admin@smartproteam~$sudo apt-get install m4

admin@smartproteam~$sudo apt-get install bison

admin@smartproteam~$sudo apt-get install flex

admin@smartproteam~$sudo apt-get install tar

admin@smartproteam~$sudo apt-get install perl

admin@smartproteam~$sudo apt-get install binutils

admin@smartproteam~$sudo apt-get install libstdc + +6- dev

admin@smartproteam~$sudo apt-get install g + +

admin@smartproteam~$sudo apt-get install openssh-client

admin@smartproteam~$sudo apt-get install tex-common

admin@smartproteam~$sudo apt-get install-base TeTeX

admin@smartproteam~$sudo apt-get install Kpdf

Note: in this case is necessary because the configuration of Perl scripts in NTL and PARI written in Perl. Latex and pdf previewer is a highly recommended option by Sage, but not sufficient condition to run Sage.

after above steps is done

now you need to dowload sage and do below steps

click here to download

tar xvf  sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz
which will make sage-4.1.1-linux-Ubuntu_9.04-i686-Linux  directory. Change the current folder to that directory:

cd sage-4.1.1-linux-Ubuntu_9.04-i686-Linux

which later became home directory for Sage. The beauty, the directory where it is not a Sage hardcoded in running Sage in Ubuntu, so do not worry to rename or move a directory where Sage is located.

Furthermore, to compile the Sage and all its components, type:

make

No need to login to root to run this compilation process, because no files outside the home Sage (in this case sage-xyz folder) are changed. (Except if there is not fussy in that directory, for example. Ipythonrc. Later known directory. Ipythonrc appear on the home computer!). If not found error, means that this process successfully executed.

To run Sage, type:

. / sage

Sage Prompt to appear in a few seconds later, which looks roughly like this:

sage:

Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.