Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2010-02-05 22:01:04
Size: 580
Editor: DavidKirkby
Comment:
Revision 7 as of 2010-02-06 16:43:43
Size: 4362
Editor: DavidKirkby
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== General Solaris notes. ==

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

 * 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'.
Line 2: Line 10:
Binaries have been created for Solaris 10. These were built on a Sun Netra T1, on which the first version of Solaris 10 was installed. Therefore, the binaries should run on any Solaris 10 machine.
Line 4: Line 11:
If you have p7zip installed, which is standard on recent Solaris 10 releases, then download the file sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.7z 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.
Line 6: Line 13:
$ p7zip -d sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z
$ tar xf sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar
$ cd sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v
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.

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

{{{
Line 10: Line 50:
}}}

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.

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.