Software

Clone boot environment "openSolaris" to "opensolaris-baseline" and to "opensolaris-work" and make the latter the default BE. After reboot install a bunch of software from the OpenSolaris repository.

Blastwave

Also, install blastwave software.

pkgadd -d http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg 
/opt/csw/bin/pkgutil --catalog 
/opt/csw/bin/pkgutil --install gnupg textutils 
/opt/csw/bin/gpg --keyserver pgp.mit.edu --recv-keys A1999E90
/opt/csw/bin/pkgutil -i libiconv gcc4 gmake

13 Dec 2009: More software installations.

Latex

See http://blogs.sun.com/rennecke/entry/latex_unter_open_solaris_installieren.
Download installer and configure installation:

  • Download to /opt/texlive/2009
  • Links to /usr/bin and /usr/man
  • German and English language only

R

See the R Installation and Administration manual and this thread.
Download R-2.10.0.tar and unpack. cd to the unpacked directory.

./configure --enable-R-shlib --enable-prebuilt-html --prefix=/opt/R \
CFLAGS=-I/opt/csw/include LDFLAGS=-L/opt/csw/lib GCC=/opt/csw/gcc4/bin/gcc 
export MAKE=/opt/csw/bin/gmake
/opt/csw/bin/gmake
/opt/csw/bin/gmake check
pfexec /opt/csw/bin/gmake install
pfexec chmod 777 /opt/R/lib/R/library /opt/R/lib/R/doc/html/packages.html

The last line enables all users to install packages.
Add /opt/R/lib/R/doc/html/index.html to browser bookmarks. Note that the build process uses compilers, make, headers, etc from /opt/csw. This can cause problems when installing packages without having the PATH variable set to the same tools. Therefore, I put a start script in /usr/bin.

#!/usr/bin/bash
export PATH=/opt/R/bin:/opt/csw/bin:$PATH
export MAKE=/opt/csw/bin/gmake
/opt/R/bin/R

I tried to use one of the precompiled packages. When starting /usr/local/R/bin/R, I get the error message: ld.so.1: R: fatal: libfui.so.2: open failed: No such file or directory.

04 Jan 2010: R works but I can't use it within eclipse (I want to try the eclipse plugin). Trying to run R as RJ (RMI/JRI) fails:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/opt/R/lib/R/library/methods/libs/methods.so':
  ld.so.1: java: fatal: relocation error: file /opt/R/lib/R/library/methods/libs/methods.so: symbol libintl_dgettext: referenced symbol not found
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/opt/R/lib/R/library/grDevices/libs/grDevices.so':
  ld.so.1: java: fatal: relocation error: file /opt/R/lib/R/library/grDevices/libs/grDevices.so: symbol libintl_dgettext: referenced symbol not found
In addition: Warning message:
package "methods" in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/opt/R/lib/R/library/grDevices/libs/grDevices.so':
  ld.so.1: java: fatal: relocation error: file /opt/R/lib/R/library/grDevices/libs/grDevices.so: symbol libintl_dgettext: referenced symbol not found
In addition: Warning message:
package grDevices in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/opt/R/lib/R/library/grDevices/libs/grDevices.so':
  ld.so.1: java: fatal: relocation error: file /opt/R/lib/R/library/grDevices/libs/grDevices.so: symbol libintl_dgettext: referenced symbol not found
In addition: Warning message:
package graphics in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/opt/R/lib/R/library/methods/libs/methods.so':
  ld.so.1: java: fatal: relocation error: file /opt/R/lib/R/library/methods/libs/methods.so: symbol libintl_dgettext: referenced symbol not found
In addition: Warning message:
package stats in options("defaultPackages") was not found 
During startup - Warning message:
package methods in options("defaultPackages") was not found

The problem is that /opt/csw/lib/libintl.so exports dgettext while /usr/lib/libintl.so doesn't. I tried to set LD_LIBRARY_PATH+=/opt/R/lib/Rlib:/opt/csw/lib in the environment of the run configuration but it doesn't help.

Reconfigure R with the option —with-included-gettext, make, and install to /opt/R_igttxt. In eclipse, create a new R environment as /opt/R_igttxt/lib/R and set LD_LIBRARY_PATH+=/opt/R_igttxt/lib/Rlib:/opt/csw/lib. This does the trick.

perl

Tried to install a few perl modules from cpan and got compiler error: unrecognized option ‘-KPIC’. perl on OpenSolaris is complied with the Sun Studio compiler. That needs to be installed and needs to appear first in the PATH variable, e.g.

export PATH=/opt/SunStudioExpress/bin:$PATH
perl Makefile.PL
make
pfexec make install

Since Term::ReadLine::Gnu is based on the readline library, the same paths as used for R need to be specified: perl Makefile.PL —includedir=/opt/csw/include —libdir=/opt/csw/lib.

QT

Follow those instructions. Download OT 4.52 and unpack. cd to the unpacked directory.

./configure -platform solaris-g++ -prefix /opt/qt4 -system-sqlite -release -no-separate-debug-info -no-qt3support -confirm-license
gmake
pfexec gmake install
cd /usr/lib
pfexec ln -s /opt/qt4/lib qt4
cd /usr/include
pfexec ln -s /opt/qt4/include qt4

All demos work but the screen fonts look very ugly (the same in lyx, see below).

04 Jan 2010: Try to fix the fonts with qtconfig, which wasn't build. In this thread, I learn that one needs to configure QT4 with QT3 support because QT4's qtconfig relies on some backwards classes. Weird, indeed. After gmake confclean I reconfigured without -no-qt3support and proceeded as before.
Most fonts one can select in qtconfig still look ugly. Best results are with Helvetica or ClearlyU. The additional TT fonts look bad too (they are ok in non QT apps like OpenOffice).

05 Jan 2010:The solution is to enable anti-aliasing in the font configuration. Create a file ~/.fonts.conf.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>
</fontconfig>

Eclipse

Install eclipse plug-ins for python and c/c++.

lyx

Download lyx 1.6.5 and unpack. cd to the unpacked directory.

./configure --with-qt4-dir="/opt/qt4" --with-qt4-includes="/usr/include/qt4" --with-qt4-libraries="/usr/lib/qt4" --with-x --x-includes="/usr/X11/include" --x-libraries="/usr/X11/lib" --prefix=/opt/lyx
cd src/frontends/qt4
/opt/qt4//bin/rcc Resources.qrc -name Resources -o Resources.cpp
cd ../../..
make
pfexec make install

05 Jan 2010:
Installed aspell and dictionaries from blastwave to use with lyx.

/opt/csw/bin/pkgutil -i aspell aspellen aspellde
cat "dict-dir /opt/csw/lib/aspell" > /opt/csw/etc/aspell.conf

Now, lyx needs to have /opt/csw/bin in the PATH.

Photo software

23 Dec 2009: Camera raw file converter: dcraw

gcc -o dcraw -O4 dcraw.c -lm -ljpeg -llcms -I/usr/include/lcms

Tried to install ufraw. It needs gtkimageview-1.3.0. This fails to build:

./configure
export MAKE=gmake
gmake

 gcc "-DPACKAGE_NAME=\"gtkimageview\"" "-DPACKAGE_TARNAME=\"gtkimageview\"" "-DPACKAGE_VERSION=\"1.6.4\"" "-DPACKAGE_STRING=\"gtkimageview 1.6.4\"" "-DPACKAGE_BUGREPORT=\"\"" "-DPACKAGE=\"gtkimageview\"" "-DVERSION=\"1.6.4\"" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -Wall -Werror -std=c99 -Wmissing-prototypes -MT cursors.lo -MD -MP -MF .deps/cursors.Tpo -c cursors.c  -fPIC -DPIC -o .libs/cursors.o
In file included from /usr/include/glib-2.0/glib/gbacktrace.h:35,
                 from /usr/include/glib-2.0/glib.h:36,
                 from /usr/include/glib-2.0/gobject/gtype.h:26,
                 from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from cursors.h:23,
                 from cursors.c:20:
/usr/include/signal.h:219: error: syntax error before '*' token
gmake[2]: *** [cursors.lo] Error 1
gmake[2]: Leaving directory `/export/home/admin/temp/gtkimageview-1.6.4/src'

The same with the later version gtkimageview-1.6.4.

The other GIMP raw plugin, rougephoto does not compile either. The MAKEFILE is for Linux only.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License