General Solaris notes.

There are 3 web pages devoted to the use of Sage on Solaris. At the time of writing (6<sup>th</sup> February 2010), Sage only builds in 32-bit mode on SPARC hardware. Ports to 64-bit mode on SPARC, and 64-bit mode on OpenSolaris x64 are in progress.

How to install the Solaris binaries

At the time ow writing, (July 2010), Sage build relieably from source code on Solaris. However, binary versions of Sage are not released regularly, so you would generally be better building Sage from source. But this page describes how to install a binary version.s The following assumes the version of Sage is which is the latest for which a binary is available. The file names will obviously change a little when the Sage version is updated.

The Solaris 10 SPARC binaries were purposely created on the first version of Solaris 10 (03/05), which means they should hopefully run on any Solaris 10 SPARC. They are not available in pkgadd format, so you must download a compressed tar file and extract it. This means you do not need root access to install Sage on a SPARC running Solaris 10.

Exactly the same files are available in two formats - one is compressed with the common gzip program, the other with the less common command p7zip. The advantage of the latter is that is gives significantly smaller files for the binaries. Currently the .gz file is 500 MB, but the .7z file is about 300 MB. p7zip is standard with modern releases of Solaris 10, but is not included in early releases of Solaris 10.

If you do not have p7zip installed, there are several ways you might get it.

If you have p7zip installed, download the file sage- If not, and you don't wish to install it, then download the .gz file, but remember you will be downloading an extra 200 MB.

1) Download the binary file from a mirror listed at

2) Decompress the compressed tar file.

 $ p7zip -d sage-  Assuming you use the recommended p7zip format file

 $ p7zip -d sage-  Assuming you use the much larger gzip compressed file

3) Extract the tar file. This must must be done with the GNU version of tar, not the Sun one, due to some limitations in Sun's tar. The GNU version of tar is installed on Solaris, though it is called 'gtar'.

$ /usr/sfw/bin/gtar xf sage-

4) You will probably need to add the directory /usr/sfw/lib to LD_LIBRARY_PATH, as the OpenSSL libraries are installed there. If you have copies of the OpenSSL libraries in /usr/local/ssl/lib, then you can avoid this step.


5) Finally run Sage

$ ./sage

You will be asked to set an administrator password for Sage. This is stored encrypted.

6) Check Sage works, by doing some simple computations, such as

sage: 1+2
sage: factorial(100)

7) Attempt to import the Python module _hashlib in Sage. This module is not essential for the functioning of most parts of Sage, but it is some of them. If you get an error message, then it indicates the OpenSSL libraries have not been found.

sage: import _hashlib

8) Run the Sage notebook a local mode by typing

sage: notebook()

then opening your web browser to the location:


You should see something similar to However, your notebook will only be accessible from your own local machine. To get the notebook accessible from other computers on your LAN, you need to pass some parameters to the notebook to indicate the IP addresses you wish to allow access to. You can of course allow world-wide access, as you can see at but there are some security implications you need to consider with this. More information about running a public access Sage server are given in the Sage documentation. Doing so is not something you want to do initially at least.

Please report any problems to the sage-support mailing list

This is a semi-moderated list. Your first few posts will be held for moderation. Once it is clear you are a serious Sage user, your posts will appear immediately. This is obviously done to avoid spam.

solaris-binaries (last edited 2010-07-19 18:08:00 by DavidKirkby)