To use Sage 4.7.1 on Ubuntu 11.10 you will have to build it from
source using the gcc-4.4 compiler (instead of the default gcc-4.6). To
do this follow these steps:

- open a terminal (ctrl-alt-t)

- install gcc-4.4 compiler by running these commands in the terminal:
sudo apt-get install gcc-4.6 gcc-4.4-base gcc-4.4 cpp-4.4 g++-4.4
gfortran-4.4
sudo update-alternatives --install /usr/bin/gcc gcc  /usr/bin/gcc-4.6
100 --slave /usr/bin/cpp cpp /usr/bin/cpp-4.6 --slave /usr/bin/g++ g+
+ /usr/bin/g++-4.6-slave /usr/bin/gfortran gfortran /usr/bin/
gfortran-4.6
sudo update-alternatives --install /usr/bin/gcc gcc  /usr/bin/gcc-4.4
80 --slave /usr/bin/cpp cpp /usr/bin/cpp-4.4 --slave /usr/bin/g++ g++ /
usr/bin/g++-4.4 --slave /usr/bin/gfortran gfortran /usr/bin/
gfortran-4.4

- switch to the gcc-4.4 alternative by selecting it from the list
after running:
sudo update-alternatives --config gcc

- download the source package from: http://www.sagemath.org/download-source.html

- in the terminal change directory to the downloaded package:
cd ~/Downloads/

- unpack the package:
tar xf sage-4.7.1.tar

- change dir to unpacked sage:
cd sage-4.7.1/

- build the source by running (will take many hours):
make

- afterwards switch back to the gcc-4.6 alternative by selecting it
from the list after running:
sudo update-alternatives --config gcc

- now you can run sage with:
./sage

- start the notebook with:
notebook()

Regards,
Bas

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to