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.
This one, which covers how to install binary releases of Sage, pre-built for you.
http://wiki.sagemath.org/solaris - which covers how to install Sage from the source code
http://wiki.sagemath.org/devel/Building-Sage-on-the-T5240-t2 - a page dedicated to building Sage on a particular computer owned by the University of Washington, called 't2'.
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 220.127.116.11 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.
Build it from source - see http://p7zip.sourceforge.net/
Install patch 137321 from http://sunsolve.sun.com/search/document.do?assetkey=1-21-137321-01-1 However, you will need a Sun maintenance contract for this.
You might be able to install the package SUNWp7zip from a DVD image of a more modern release of Solaris, though it is anyone's guess if this will work or not.
- Upgrade Solaris.
If you have p7zip installed, download the file sage-18.104.22.168-Solaris-10-SPARC-sun4u-or-sun4v.7z. 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 http://www.sagemath.org/download-solaris.html
2) Decompress the compressed tar file.
$ p7zip -d sage-22.214.171.124-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z Assuming you use the recommended p7zip format file
$ p7zip -d sage-126.96.36.199-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. The GNU version of tar is installed on Solaris, though it is called 'gtar'.
$ /usr/sfw/bin/gtar xf sage-188.8.131.52-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.
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/sfw/lib $ export LD_LIBRARY_PATH
5) Finally run 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
then opening your web browser to the location:
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 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 http://t2nb.math.washington.edu:8000/ 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.