Sunday, July 6, 2008

Adding to LD Library Path on solaris.

Easiest way to add to LD Library Path on solaris is to use crle...

If you got one of those pesky Fatal library.so exceptions.. the only way is to add to LD Library path..This can be achieved by using crle..

use crle to find out what there in LD Library path..

bash-3.00$ crle

Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF):

Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
crle -c /var/ld/ld.config -l /lib:/usr/lib


To add to LD Library Path use the following

bash-3.00$ sudo crle -u -l /usr/lib/mps
Password:

Viola..... you have added /usr/lib/mps to the LD Library path...

Confirm that by issuing the following command..


bash-3.00$ crle

Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /lib:/usr/lib:/usr/lib/mps
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/lib/mps

No comments: