I downloaded the latest Sage binary for Ubuntu and I use Ubuntu 11.10.
Here is what I got when I started it:
ondrej@eagle:~/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage
----------------------------------------------------------------------
| Sage Version 4.8, Release Date: 2012-01-20 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
The Sage installation tree may have moved
(from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-4.8
to /home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux).
Changing various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done resetting paths.
Traceback (most recent call last):
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython",
line 18, in <module>
import IPython
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/__init__.py",
line 58, in <module>
__import__(name,glob,loc,[])
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/ipstruct.py",
line 17, in <module>
from IPython.genutils import list2dict2
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/genutils.py",
line 53, in <module>
from IPython.external.path import path
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/external/path.py",
line 35, in <module>
import md5
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py",
line 10, in <module>
from hashlib import md5
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py",
line 136, in <module>
md5 = __get_builtin_constructor('md5')
File "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py",
line 63, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
So I guess I should compile from source. Just wanted to let you know.
The missing _md5 usually (in my experience) signals that Python
couldn't find some
header files and decided not to compile the _md5 module, however the
tests in the Python's spkg-install script catch this, so I am not sure
how this could happen.
Ondrej
Hi Ondrej,
You know! Compile from source.
Good to see you here.
Jaap
Thanksssss Jaap for your helpss. I really appreciate it. All is clear now. :)
Ondrej
Or make Sage work with some "restrict" library, I wrote one here:
https://github.com/certik/restrict
you specify paths that are allowed (like /usr/include/stdio.h) and
everything else
is forbidden. I only tested this on linux.
That should make sure, that things are never picked up from the system
--- if this is the problem.
Ondrej