SolarisInstallProblemPackages

How to correct lib problems with some Solaris packages

Overview

Usually, packages are installed under Solaris without any problem.

However, you may run into some problems, such as the following:

root@galactus$ gcc --version
ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory
Killed

root@galactus$ which gcc
/usr/local/bin/gcc

root@galactus$ ldd `which gcc`
        libintl.so.3 =>  (file not found)
        libiconv.so.2 =>         (file not found)
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1

How to solve this problem

Update the Solaris shared libraries configuration with the command: crle.

For instance:

root@galactus$ crle -v -u
[...Lots of message follow...]

root@galactus$ which gcc && ldd `which gcc` && gcc --version
/usr/local/bin/gcc
        libintl.so.3 =>  /usr/local/lib/libintl.so.3
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libc.so.1 =>     /usr/lib/libc.so.1
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Now, that looks much better, doesn't it?

Please note that using crle only works if all libraries requested by the package (here, of course, GCC) are already installed on the target machine.