User Tools

Site Tools


code:solaris

Compiling RTS2 for Sun/Solaris

Compiling RTS2 for Sun/Solaris is know to work, at least at

> uname -a 
SunOS ultra2 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-2

.

You need to compile Libnova and possibly other libraries (ncurses,..) which aren't part of standard Solaris installation. They all compile fine (Libnova from CVS or version 0.13 and up).

Setting the environment

You need to make sure that gcc is working and have access to all required libraries. For 1.23m that was fixed by calling

> setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/mpi2/mpiwork/caha/gcc-3.2.2/lib 

Your mileage might vary.

You then need to run ./configure with path to various libraries, which you will most probably not found on Solaris. In our case, configure call was:

rts2> ./configure '--with-cfitsio=/disk-a/obs12/jelinek/cfitsio' '--with-wcs=/disk-a/obs12/kubanek/wcstools-3.7.6/libwcs/' '--without-pgsql' '--with-ncurses=/disk-a/obs12/kubanek/' '--with-libnova=/disk-a/obs12/kubanek/'

After that, typing

rts2> make clean && make

shall end without any errors. If you see some, please either fix them, or report them.

Know problem with GraphicsMagick

For unknow reasons, GraphicsMagick add stdlibc++ to .la file. This then produces conflicts with other stdlibc++, if they are available.

The fix is to remove reference to stdlibc++ from GraphicsMagick++.la file under lib directory.

code/solaris.txt · Last modified: 2010/04/06 00:00 (external edit)