Sie sind auf Seite 1von 6

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

Login with SSO

Forum
Quick Links
UsefulForum
Links

Activity Page

Please read before SSO login

Forum Community

Ubuntu Community

The Ubuntu Forum Community

Education & Science

FAQ

Advanced Search
Social Media

Other Support

Other Discussion and Support

How to install SageMaths on ubuntu


Results 1 to 3 of 3

Thread: How to install SageMaths on ubuntu


Thread Tools

Display
#1

November 20th, 2008

bigbrovar
Quad Shot of Ubuntu

Join Date:
Jun 2007
Location:
Abuja,Nigeria
Beans:
499
Distro:
Ubuntu 8.04 Hardy Heron

How to install SageMaths on ubuntu


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.
rst 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
Code:

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

once downloaded . i untar it (extracted the archive)


in my case
Code:

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

1 of 6

07/07/2015 09:07 PM

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

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


Code:

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


Code:

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-ubuntu32intel-XEON-x86-i686-Linux

Code:

gksu gedit /usr/local/bin/sage

modied it to look like this


Code:

# 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 modied the sage root directory permission settings


Code:

sudo chmod -R 755 /usr/local/src/sage-3.1.4-ubuntu32-intel-XEON-x86-i686-Linux

now run you can run it


Code:

sage

to get a webbased ui
Code:

run notebook()

2 of 6

07/07/2015 09:07 PM

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

hope someone nds this useful

servant of the secret re, wielder of the ame of Anor!


Blog identica twitter lastfm

Adv Reply

#2

November 22nd, 2008

Join Date:
Nov 2008

xounic
First Cup of Ubuntu

Beans:
1

Re: How to install SageMaths on ubuntu


Thank you for the the HowTo!
I just wanted to add something about a problem I had with jsMath in the sage-notebook:
Allthoug I installed jsMath correctly and it was working on other sites it did not in the notebooks
running my local sage server.
After a while I found the following solution:
I downloaded the Image-Font-Package from the jsMath-site : http://sourceforge.net/project
/showf...roup_id=172663
Then I unzipped it (for example to /tmp) and copied the contained directory named "fonts"
to the destination sageDir/data/extcode/notebook/javascript/jsmath/
After that the pretty_print-command in the sage notebook worked!
(Before I just could see the LaTeX-like "source code" of jsMath)

Maybe this explanations helps saving some time to someone with the same problem.
Maybe I should mention, that I did not installed sage system wide. I just downloaded, unpacked and
started it.

Adv Reply

July 13th, 2010

3 of 6

#3

07/07/2015 09:07 PM

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

rajatgoel
First Cup of Ubuntu

Join Date:
Jul 2010
Beans:
1

Re: How to install SageMaths on ubuntu


Hi...
i am using ubuntu 9.04 on a 32 bit sysytem....i downloaded the following version of sage..
sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux.tar.lzma
Is their any other version of sage for ubuntu 9.04...I am getting the following error when i follow the
above mentioned procedure..
---------------------------------------------------------------------| Sage Version 4.4.4, Release Date: 2010-06-23 |
| Type notebook() for the GUI, and license() for information. |
-----------------------------------------------------------------------------------------------------------------------------------------------ImportError Traceback (most recent call last)
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/bin/<string> in <module>()
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/preparser_ipython.py in <module>()
6 ##################################################
#########################
7
----> 8 import sage.misc.interpreter
9
10 import preparser
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/interpreter.py in <module>()
100
101 import os
--> 102 import log
103
104 import remote_le
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/log.py in <module>()
63
64 import interpreter
---> 65 import latex
66 import misc
67
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/latex.py in <module>()
38 import random
39

4 of 6

07/07/2015 09:07 PM

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

---> 40 from misc import tmp_dir, graphics_lename


41 import sage_eval
42 from sage.misc.misc import SAGE_DOC
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/misc.py in <module>()
36
37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math
---> 38 import sage.misc.prandom as random
39
40 from banner import version, banner
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/prandom.py in <module>()
54 # setting seeds should only be done through sage.misc.randstate .
55
---> 56 from sage.misc.randstate import current_randstate
57
58 def _pyrand():
ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by /usr/local
/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/libpari-gmp.so.2)
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=Tru e'
--------------------------------------------------------------------------ImportError Traceback (most recent call last)
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/IPython/ipmaker.pyc in force_import(modname)
64 reload(sys.modules[modname])
65 else:
---> 66 __import__(modname)
67
68
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/bin/ipy_prole_sage.py in
<module>()
1 import os
2 if 'SAGE_CLEAN' not in os.environ:
----> 3 import sage.misc.misc
4 from sage.misc.interpreter import preparser, _ip
5 preparser(True)
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/misc.py in <module>()
36
37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math
---> 38 import sage.misc.prandom as random
39
40 from banner import version, banner
/usr/local/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages
/sage/misc/prandom.py in <module>()
54 # setting seeds should only be done through sage.misc.randstate .

5 of 6

07/07/2015 09:07 PM

How to install SageMaths on ubuntu

http://ubuntuforums.org/showthread.php?t=987954

55
---> 56 from sage.misc.randstate import current_randstate
57
58 def _pyrand():
ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by /usr/local
/src/sage-4.4.4-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/libpari-gmp.so.2)
Error importing ipy_prole_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_prole_sage failed.
WARNING: Readline services not available on this platform.
WARNING: The auto-indent feature requires the readline library
<ERROR: name 'sage_prompt' is not dened>

What could be the possible reason for this error and how should I remove it and run sage??

Adv Reply

Quick Navigation

Education & Science

Top

Previous Thread | Next Thread

Bookmarks
Digg
del.icio.us
StumbleUpon
Google

Posting Permissions
You may not post new
threads
You may not post replies
You may not post
attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
[VIDEO] code is O
HTML code is O
Ubuntu Forums
Code of Conduct

Ubuntu Forums Archive Top

-- Ubuntu vB4.x

All times are GMT +1. The time now is 06:48 AM.
vBulletin 2000 - 2015, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. Tango Icons Tango Desktop
Project.
User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. For details
and our forum data attribution, retention and privacy policy, see here

6 of 6

07/07/2015 09:07 PM

Das könnte Ihnen auch gefallen