Skip to content

Using crle on Solaris

The crle command on Solaris is used to configure the runtime linking environment (get it?). If you are seeing errors similar to the following, you may need to look at and adjust your linking environment with crle:

ld.so.1: conftest: fatal: libreadline.so.5: open failed: No such file or directory

Using crle is straightforward; to view the current configuration:

> crle

Default configuration file (/var/ld/ld.config) not found
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Updating the linking environment is also easy; to solve the libreadline.so.5 problem on my system shown above:

> pfexec crle -l /depot/readline-5.2/lib -u

References and more details: crle man page, When should I set LD_LIBRARY_PATH?, Some Solaris FAQ, What would we do without crle?

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*