SUMMARY: odd library locations

From: Christopher L. Barnard <cbar44_at_tsg.cbot.com>
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.

crle

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

ray.mccaffity@usbank.com
Brad_Morrison@capgroup.com
Koef <koef@notsupported.org>
Anthony D'Atri <aad@beak.org>
Steve Harris <sharris@myra.com>
Eric Sisson <ems@mdacc.tmc.edu>
Sandwich Maker <adh@an.bradford.ma.us>
William Enestvedt <wenestvedt@gmail.com>
"Saxon, Stuart" <Stuart.Saxon@centrica.co.uk>
"Lineberger, Aaron" <alineberger@ncdoc.navy.mil>

+-----------------------------------------------------------------------+
| Christopher L. Barnard         O     When I was a boy I was told that |
| cbarnard@tsg.cbot.com         / \    anybody could become president.  |
| (312) 347-4901               O---O   Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard                --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
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