[fpc-other] How to set library search path ?

noreply at z505.com noreply at z505.com
Sun Mar 12 22:19:52 CET 2017


On 2017-03-12 14:15, Fred van Stappen wrote:
> Hello.
> 
> Is it possible to set the search-path for library without to
> edit-change the config file ?
> 
> For example, in Linux, you should edit .bash_profile and add:
> 
> LD_LIBRARY_PATH=/usr/local/lib
> export LD_LIBRARY_PATH
>  But is it possible to set that library path without to edit a file,
> only by command (via a TProcess) ?
> 
> And if it is possible for Linux, how to do for Windows and FreeBSD and
> Mac OS (and other os are welcome).
> 
> Thanks.


SetEnv works only in the program that's running, AFAIK, but may work for 
what you need?

i.e. setenv is applied during the program lifetime, AFAIK, and then once 
the program ends the env you set is no longer set any more. But, I'm 
inexperienced with this - that's what I've read.


More information about the fpc-other mailing list