This section will describe how to build Sage from source code on OS X or Linux. Although Sage consists of nearly 100 packages, the build process hides much of the complexity. It is impossible to provide instructions for all of the platforms that can build Sage, but the following guidelines should cover most cases. The official documentation for building Sage from source is available at http://sagemath.org/doc/installation/source.html.
In order to compile Sage, you will need about 2.5GB of free disk space, and the following tools must be installed:
GCC
g++
gfortran
make
m4
perl
ranlib
tar
readline and its development headers
ssh-keygen (only needed to run the notebook in secure mode)
latex (highly recommended, though not strictly required)
If you are running OS X (version 10.4 or later), install XCode to get all of these tools. XCode is available for free when you sign up as a developer at http://developer.apple.com/. Make sure that you have XCode version 2.4 or...