Differences between revisions 8 and 9
Revision 8 as of 2010-02-06 17:04:49
Size: 4966
Editor: DavidKirkby
Comment:
Revision 9 as of 2010-02-06 17:10:24
Size: 5057
Editor: DavidKirkby
Comment: How to install the Solaris binaries.
Deletions are marked like this. Additions are marked like this.
Line 53: Line 53:
You will be asked to set an administrator password for Sage. This is stored encrypted.

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

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. 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 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-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. The GNU version of tar is installed on Solaris, though it is called 'gtar'.

$ /usr/sfw/bin/gtar 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.

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

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:

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

http://groups.google.com/group/sage-support

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.