I have compiled SAGE, a mathematics suite.
I will tell how I have done that.
I applied the following 3 commands after unpacking the tar ball:

sudo aptget upgrade && sudo aptget install buildessential m4 gfortran

sudo aptget install imagemagick texlive

make
While running the program I get an Import Error as you can see below.
Can someone tell me what the problem is?
terminal response:
[email protected]:~/Aplicaties/sage4.6.2$ ./sage
 Sage Version 4.6.2, Release Date: 20110225 
Type notebook() for the GUI, and license() for information. 

ImportError Traceback (most recent call last)
/home/tony/Aplicaties/sage4.6.2/local/lib/python2.6/sitepackages/IPython/ipmaker.pyc in force_import(modname)
64 reload(sys.modules[modname])
65 else:
—> 66 import(modname)
67
68
/home/tony/Aplicaties/sage4.6.2/local/bin/ipy_profile_sage.py in <module>()
5 preparser(True)
6
> 7 import sage.all_cmdline
8 sage.all_cmdline._init_cmdline(globals())
9
/home/tony/Aplicaties/sage4.6.2/local/lib/python2.6/sitepackages/sage/all_cmdline.py in <module>()
12 try:
13
—> 14 from sage.all import *
15 from sage.calculus.predefined import x
16 preparser(on=True)
/home/tony/Aplicaties/sage4.6.2/local/lib/python2.6/sitepackages/sage/all.py in <module>()
97 from sage.calculus.all import *
98
—> 99 from sage.server.all import *
100 import sage.tests.all as tests
101
/home/tony/Aplicaties/sage4.6.2/local/lib/python2.6/sitepackages/sage/server/all.py in <module>()
1
> 2 #from server1.all import *
3 from notebook.all import *
4 from wiki.all import *
5 from trac.all import *
6
/home/tony/Aplicaties/sage4.6.2/local/lib/python2.6/sitepackages/sage/server/notebook/all.py in <module>()
20
21 # Import the new separated Sage notebook.
—> 22 from sagenb.notebook.all import *
23
24
/home/tony/Aplicaties/sage4.6.2/devel/sagenb/sagenb/notebook/all.py in <module>()
14 from sage_email import email
15
—> 16 from notebook_object import notebook, inotebook
17
18 from interact import interact, input_box, slider, range_slider, selector, checkbox, input_grid, text_control, color_selector
/home/tony/Aplicaties/sage4.6.2/devel/sagenb/sagenb/notebook/notebook_object.py in <module>()
15 import time, os, shutil, signal, tempfile
16
—> 17 import notebook as _notebook
18
19 import run_notebook
/home/tony/Aplicaties/sage4.6.2/devel/sagenb/sagenb/notebook/notebook.pyc in <module>()
44 import server_conf # server configuration
45 import user_conf # user configuration
—> 46 import user # users
47 from template import template, prettify_time_ago
48
/home/tony/Aplicaties/sage4.6.2/devel/sagenb/sagenb/notebook/user.py in <module>()
1 #  coding: utf8 
2 import copy
> 3 import crypt
4 import cPickle
5 import os
ImportError: No module named crypt
Error importing ipy_profile_sage  perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
sage: