Difference between revisions of "Slicer3:Solaris"

From Slicer Wiki
Jump to: navigation, search
(Added info about Apache Standard C++ Library, plus minor edits)
(→‎LINKS: typo)
Line 87: Line 87:
Packages containing newer versions of cvs/svn should yo need them:
Packages containing newer versions of cvs/svn should you need them:

Revision as of 08:07, 25 August 2010

Home < Slicer3:Solaris
Slicer 3.6.1 running on Solaris. Image courtesy Stefan Teleman.

The compilation of Slicer3 on Solaris (Getbuildtest on Solaris)

At present (as of August 2010) the build of Slicer3 is only supported on Opensolaris (or on SXCE, but that is discontinued).

On Solaris 10 the build will likely fail, as Slicer3's build process involves the building of Python 2.6, and that needs a newer version of libcrypto (>0.9.7) that is not included with the OS. According to Oracle there won't be a newer version either, but they going to patch the current release (see the link bellow). This is good for security, but bad for missing symbols.

Oracle Studio is used to compile Slicer3 on Solaris. Both Studio 12.1 and Studio Express have some bugs that make the compilation harder, but the bugs have been reported and being worked on.

Building with gcc is not supported on Solaris.

The build system uses the Apache Standard C++ Library on Solaris, which is available for SXCE and Opensolaris out of the box (package names: SUNWlibstdcxx4 and library/c++/stdcxx). This library is available for Solaris 10 as a contributed download; you can find it in the Links section.

There have been reports that running Slicer3 under Solaris 10 is possible with a recent Xorg, Python and Apache Standard C++ Library versions.

Should you still use SXCE, the needed packages are:

SUNWgmake SUNWcvs SUNWsvn SUNWTcl SUNWxwplt SUNWxorg-mesa SUNWxorg, SUNWlibstdcxx4.

In case there are missing packages, you can install them from the install CD/DVD:

Put it in the drive, or mount the iso via lofi, and browse to the Solaris_11/Product directory, and

pkgadd -d . SUNWgmake SUNWcvs SUNWsvn SUNWTcl SUNWxwplt SUNWxorg-mesa SUNWxorg SUNWlibstdcxx4

cvs or svn may complain for a newer versions. In this case it is recommended that you download and install the CBE tools from opensolaris.org (link below).

On OpenSolaris you can use the IPS system to add missing packages. The names for the needed packages can be found in the "Links" section below.

If you need, you can install newer versions of the above tools either from blastwave, or from sunfreeware too. In both cases check your paths! Put /opt/csw/bin in case of blastwave, and /usr/local/bin in case of sunfreeware in your profile.

You can check your 3D acceleration by running: /usr/X11/demo/glxgears.

Best results can be achieved with nVidia cards, as there do not exist drivers with 3D acceleration for Ati cards on Solaris. Intel's chipsets should be fine too.

Download of the binary version

As of August 2010 the current stable version of Slicer is 3.6.1. You can download a 64 bit binary for Opensolaris x86_64 here:


Installation of the Apache Standard C++ Library might be necessary to run the software. You might have to install SUNWlibstdcxx4 OR library/c++/stdcxx or ask your sysadmin to do that for you.


you can download a Virtualbox appliance with a preinstalled (although earlier) version of Slicer. After the extraction of the files from the archive, you can import them into Virtualbox and test Slicer. Virtualbox provides both 2D and 3D acceleration for guests. You can download the above, 3.6.1 version of Slicer3 into this VM, so you can run the latest version of Slicer in it too.


Beware, this is a big download, around 2.5 GB in size!

The username inside the VM is: slicer

and the password is: slicc3r2k

You cannot logon as root, but should you need to switch user (su) later, the password is the same for that account too.


A blog entry on Solaris 10 and libcrypto/libssl: http://blogs.sun.com/janp/entry/on_openssl_versions_in_solaris

A link to the mail about Solaris and gcc: http://www.vtk.org/pipermail/vtkusers/2009-August/102167.html

Download link to Oracle Studio: http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.html

Renamed packages for Opensolaris: http://hub.opensolaris.org/bin/view/Project+indiana/Renamed+Packages+in+Build+133

Packages containing newer versions of cvs/svn should you need them: http://dlc.sun.com/osol/jds/downloads/cbe/ or http://dlc.sun.com/osol/jds/downloads/cbe/test/

Apache Standard C++ Library for Solaris 10 x86 (non-official download): http://s247136804.onlinehome.us/stdcxx/4.2.1/packages/SOLARIS10/i386/20090917/SUNWlibstdcxx4.i386.tar.bz2