bigbrovar

November 24, 2008

How to install SageMaths on ubuntu

Filed under: Education,FOSS & Mathematical Science,Ubuntu — Bigbrovar @ 12:32 pm
Tags: , ,

how i got to install sage on ubuntu..

Sage is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface.
you can read more about sage here http://www.sagemath.org/tour.html
unfortunately sage is not available in the Ubuntu repositories and in-fact any repositories as a .deb package. ( at the time of writing this). did you say compiling? dont even go there i tried building it. and failed woefully. fortunately i found a nice and easy to install it on Ubuntu. there is a binary package already compiled for Ubuntu. which makes installation on Ubuntu quite easy and straight forward.

first we download the ubuntu binary here http://www.sagemath.org/bin/linux/32bit. the guide is based on version 3.1.4 so i just did

wget http://www.sagemath.org/bin/linux/32bit/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux.tar.gz

the above link seem to be broken. although i have not tried it. but this link should work

Ubuntu 8.0.4
wget -c ftp://ftp.sun.ac.za/pub/mirrors/www.sagemath.org/linux/32bit/sage-3.4-linux-PentiumM-ubuntu-8.04.1-i686-Linux.tar.gz

Ubuntu 8.10
wget -c ftp://ftp.sun.ac.za/pub/mirrors/www.sagemath.org/linux/32bit/sage-3.4-linux-Ubuntu_8.10-i686-Linux.tar.gz

once downloaded . i untar it (extracted the archive)
in my case

tar xzvf sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux.tar.gz

then i moved it to /usr/local/src/

sudo mv sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux /usr/local/src

then i copied the sage script in to /usr/local/bin

sudo cp /usr/local/src/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux/sage /usr/local/bin

then i edited SAGE_ROOT in /usr/local/bin/sage to point to /usr/local/src/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux

gksu gedit /usr/local/bin/sage

modified it to look like this

# Set SAGE_ROOT to the location of the sage install.
SAGE_ROOT="/usr/local/src/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux/"

i modified the sage root directory permission settings
sudo chmod -R 755 /usr/local/src/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux

now run you can run it

sage

to get a webbased ui
run notebook()

hope someone finds this useful

6 Comments »

  1. Hi,

    could you report the build failure so we can fix it?

    Cheers,

    Michael

    Comment by Michael Abshoff — November 25, 2008 @ 9:58 pm | Reply

  2. Thanks from a Ubuntu-loving math professor!

    Comment by M. Nielsen — February 19, 2009 @ 8:25 am | Reply

  3. Hi
    Thank you for this helpfull information, it works perfectly

    xavier

    Comment by Roguiez, X. — March 18, 2009 @ 7:54 pm | Reply

  4. @ M. Nielsen, Roguiez, X. am glad it worked for you.

    Comment by Bigbrovar — March 18, 2009 @ 8:32 pm | Reply

  5. Hi again,

    I’ve loaded the source package and build with make into my personnal directory /home/xav/sage3.3
    Then I’ve try it, sage works

    After I move all the binaries and the structure as describe above.

    Only : “sudo sage” works
    The command : “sage” doesn’t work, I must change the access right on the local directory .sage with “sudo chmod -R 775 ~/.sage” and “sudo chown -R xavier ~/.sage”. Is it normal ?
    And now it works…

    xavier

    Comment by Roguiez, X. — March 19, 2009 @ 5:51 pm | Reply

  6. Looks like the newest version of Sage doesn’t provide binary for 8.04 anymore.

    Comment by dingle — May 6, 2010 @ 4:05 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: