General Solaris notes.

There are 3 web pages devoted to the use of Sage on Solaris

How to install the Solaris binaries

The following assumes the version of Sage is 4.3.0.1 which is the latest release building on Solaris. 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. (The saving for source files using p7zip is considerably less, and p7zip is much slower to compress, though decompression is quick). 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-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.7z. If not, and you don't wish to install it, then download the .gz file, but remeber you will be downloading an extra 200 MB.

1) Download the binary file from

2) Decompress the compressed tar file.

 $ p7zip -d sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z  Assuming you use the recommended p7zip format file

 $ p7zip -d sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.gz  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.

$ /usr/sfw/bin/tar xf sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar

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.

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/sfw/lib 

5) Finally run Sage

$ ./sage

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 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:

http://localhost:8000

You should see something similar to http://t2nb.math.washington.edu:8000/ However, your notebook will only be accessible from your own local machine. To get the notebook acessisble 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 http://t2nb.math.washington.edu:8000/ but there are some security implications you need to consider with this. More infomation about running a public access Sage server are given in the Sage documentation.