SUMMARY: odd library locations

From: Christopher L. Barnard <>
Date: Wed Sep 13 2006 - 15:30:07 EDT
I asked

> I am trying to run a binary from cron.  It was built with reference to a
> library in a non-standard place.  Adding that not-standard path to root's
> LD_LIBRARY_PATH works just fine.  However, when I run it from cron it
> complains that the library is not found.  I have even had cron call a
> shell script which set the LD_LIBRARY_PATH and then runs the program.
> Copying the needed library into /usr/lib solves the problem, but it is
> not very elegant.  Is there a way to run a program specifying where to
> find libraries?

The answer

Man, that was fast.  This list is great.


To quote one response,

     use crle to update /var/ld/ld.config. For example to add
     /usr/local/lib you would run:

     crle -u -l /usr/local/lib
     Then run crle without options to make sure the runtime
     linking environment has been updated. This will allow you
     to not rely on LD_LIBRARY_PATH and will make the library
     available to all users with the variable.

Thanks to
Koef <>
Anthony D'Atri <>
Steve Harris <>
Eric Sisson <>
Sandwich Maker <>
William Enestvedt <>
"Saxon, Stuart" <>
"Lineberger, Aaron" <>

| Christopher L. Barnard         O     When I was a boy I was told that |
|         / \    anybody could become president.  |
| (312) 347-4901               O---O   Now I'm beginning to believe it. |
|                --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
sunmanagers mailing list
Received on Wed Sep 13 15:38:08 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:00 EST