running my program with shared libraries

Adam D. Ruppe destructionator at gmail.com
Sat Apr 5 19:49:14 PDT 2014


On Sunday, 6 April 2014 at 00:12:00 UTC, Harpo wrote:
> Then in a runner script I have this.
>
> LD_LIBRARY_PATH=. ./main

This kind of thing is common in Linux, in fact, a lot of Linux 
software consists of a runner script that sets LD_LIBRARY_PATH 
and a separate binary file and its library .so files that is the 
actual application.

LD_LIBRARY_PATH tells it where to find the shared library files. 
Without it, the system only searches the global directories like 
/usr/lib.


More information about the Digitalmars-d-learn mailing list