Toolserver:Solaris software

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

This page describes software available on the Solaris servers. For some pieces of software, there are two versions: Sun and Toolserver. We generally recommend using the Toolserver version. Most of the Toolserver versions follow the naming scheme /opt/ts/<software>/<version>/bin/<whatever>. This means you can rely on a particular version being that version forever; if later versions are installed, you can update your software as needed. For software that has third-party modules (e.g. Perl and Python), modules will generally only be installed for the Toolserver versions.

The default $PATH includes the latest version of each piece of software, so there's no need to use the full path in most cases. For scripting languages, there are symlinks at /usr/bin/<program><version>, e.g. /usr/bin/python2.7.

Specific software[edit]

Python[edit]

There is no Sun Python.

The default version (/usr/bin/python) is 2.6. 2.7 and 3.1 are also available:

  • /usr/bin/python2.7 (→ /opt/ts/python/2.7/)
  • /usr/bin/python3.1 (→ /opt/ts/python/3.1/)

Note that Python 3.1 has fewer modules available, since most Python 2.x modules have not been ported to 3.x yet. For MySQL access, use the oursql module instead of MySQLdb (this is also available for 2.x).

Perl[edit]

Sun Perl is installed in /usr/perl5/5.8.4/bin. Don't use this version.

The default Toolserver Perl version is 5.12 (/usr/bin/perl, /opt/ts/perl/5.12/). Currently, this is the only Toolserver version installed.

Ruby[edit]

There is no Sun Ruby.

The default Toolserver Ruby version is 1.8 (/usr/bin/ruby, /opt/ts/ruby/1.8/bin). Ruby 1.9 is also available as /usr/bin/ruby1.9 (→ /opt/ts/ruby/1.9/).

PHP[edit]

There is no Sun PHP.

The default Toolserver PHP version is 5.3 (/usr/bin/php, /opt/ts/php/5.3/). Currently, this is the only Toolserver version installed.

MySQL[edit]

There is no Sun MySQL.

The default Toolserver MySQL version is 5.1 (/opt/ts/mysql/5.1/). Currently, this is the only Toolserver version installed.

CC[edit]

Sun Studio 12.1
/opt/sunstudio12.1/bin/cc. This is linked from /usr/bin/cc.
GCC 3.4.3
/usr/sfw/bin/gcc
GCC 4.4
/opt/ts/gcc/4.4/bin/gcc

Userland[edit]

There are two userlands available on the Toolserver: "Solaris" and "GNU". The default userland is GNU, which means system utilities (such as ls) will be the GNU version. This is likely to be better for Linux users unfamiliar with Solaris. If you want to change to the Sun userland, you should set your $PATH as below:

Sun userland
/opt/ts/bin:/usr/bin:$PATH
GNU userland
/opt/ts/gnu/bin:/opt/ts/bin:$PATH

(Where $PATH refers to the default path.)

The /opt/ts/bin directory contains locally-installed software.

Category:Documentation