wiki:SolarisNotes

(under construction)

Christian Schaffer provided us with details about Solaris installations he uses to build and use GDAL. Check the Tested Environments table for more information.

Below, I pasted some helpful tips from Christian:

General note:

  • we use binary packages of gcc from www.blastwave.org

Settings to apply on SPARC only:

  • use gld from www.blastwave.org [=/opt/csw/bin/gld]
  • if using OCI: set LDFLAGS=-L/opt/oracle/product/10.1.0/db_1/lib32 before configure
  • if using OCI: edit GDALmake.opt like this before make
    C_PROFFLAGS = -g3 -pg -DDEBUG
    LIBS = -lclntsh -L/opt/oracle/product/10.1.0/db_1/lib32  -lm -lrt -ldl
    

On a multi-user Solaris system without root privileges, GDAL may need to be installed in the user's home directory. In this case, be sure to use (for example) --prefix=$HOME/local in the configuration. Python (among other programs) need to link to the library, and if errors related to missing "libgdal.so.1" are shown, the LD_LIBRARY_PATH environment variable may to be adjusted to the location of the library files. This can be achieved by adjusting (for example) in ~/.bash_profile:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib

or to wherever the prefix/lib was defined in the configuration.

Last modified 16 years ago Last modified on Aug 12, 2008, 2:28:47 AM
Note: See TracWiki for help on using the wiki.