Installation from source is very easy, because the distribution contains everything on which SAGE depends. These have been tested on some common Linux systems such as Debian, SUSE, and Fedora, along with OS X and Windows (under Cygwin).
WARNING: Make sure there are no spaces in the directory name under which you build SAGE.
http://modular.fas.harvard.edu/manin/dist/src/index.html
tar xf sage-2005-<date>-src.tar
sage-2005-<date>
. If you want to change the name of
this directory (say to sage_0.2_<date>
) you must do it at this stage.
cd sage-2005-<date>
make
IMPORTANT NOTE: The directory where you built SAGE is now hardcoded into the sage script, so you should not move or delete that directory. This drawback will be fixed in a future release.
bin/sage
>>>
was@math.harvard.edu
.
Please include in your email
the type of operating system you have and the
version number of SAGE which you downloaded.
Try a command:
>>> factor(2005) [(5, 1), (401, 1)]
echo $PATH
and cp sage <your-path-dir>
into one of these directories,
or else add this bin
directory to your PATH variable,
e.g., if you use the bash shell, add the line
PATH="<sage-home-dir>/bin":$PATH export PATH
make test
.
This runs all examples in the API documentation and makes
sure that they run exactly as claimed. In a few cases there
may be some discrepancies because, e.g., 64-bit machines
print float numbers to higher precision than 32-bit.
rm -rf install/build
make clean
.
Have fun!
Note: The subdirectory called log contains the logfiles and conf contains the IPython configuration file used by SAGE. The
logfiles log every command (not the output) you type in, and the
history is persistent between sessions. There is also a file called
log/verbose, which is where verbose logging goes when you use
the set_verbose
command in SAGE.
See About this document... for information on suggesting changes.