Wednesday, August 24, 2011

Pre-built Binary Install and Compile from Source Install — Sage Installation Guide v4.7.1

Pre-built Binary Install — Sage Installation Guide v4.7.1 - http://www.sagemath.org/doc/installation/binary.html

In order to install a binary (a pre-compiled version) of Sage:

1) Go here -> Download for Linux - http://www.sagemath.org/download-linux.html

and choose a mirror.


2) Choose you system bit type then system appropriate file -> my case was 64-bit and I chose the smaller file to download

sage-4.7.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux.tar.lzma


*.lzma compressed binaries can be extracted via
tar --lzma -xvf sage-*...tar.lzma
They save you about 150MB to download.




3) Then extract package and move to desired folder location. For additional path naming etc. information see -> Pre-built Binary Install - http://www.sagemath.org/doc/installation/binary.html

I, for example, simply extracted it into the folder it was downloaded to -> home/Downloads then moved it to home.



4) Then simply execute the Sage command by typing:

./sage

in the directory. If you don't and try to double click on it like the big dummy I am then it won't run and you might get confused and try to run make (like I did) which is not necessary, but you can do it :). Sage will then open in a browser, but on your local machine. Sage is heavy on being online based (works in a web browser) so that is why it opens in a browser.



Also see link:

Quick Download and Installation Guide - http://wiki.sagemath.org/DownloadAndInstallationGuide



If you choose to compile yourself,

1) then download the source file from the mirror of your choice:


2) You may have to do extra steps (see below), but then run the command "make" without quotations (simply type make) in a terminal command line IN the directory where the "sage" file is located.


Source Code - http://www.sagemath.org/download-source.html

Information

Thank you for your interest in Sage! You can get the complete source for Sage to compile it on your own Linux or Mac OS X system. Sage lives in an isolated directory and does not interfere with your surrounding system. It ships together with everything necessary to develop Sage, the source code, all its dependencies and the complete changelog.

Short instructions:

Extract archive

Start compiling:
make

Run Sage: .
/sage

Upgrade to newer version later:
./sage -upgrade

Please read the README.txt and the installation guide for more details. Note: On Linux systems like Debian/Ubuntu, you may have to install the build essential package, the m4 macro processor, and gfortran:

sudo apt-get install build-essential
sudo apt-get install m4
sudo apt-get install gfortran

You might also consider installing the readline package and its corresponding development headers. These packages make it easier to work with the Sage command line interface by providing text editing features at the command line level:

sudo apt-get install readline-common
sudo apt-get install libreadline-dev

There is a very high level changelog.

You can browse all the tracked source code repositories and see exactly what's going on, and who did what when.

No comments:

Post a Comment