sshaikh
April 11th, 2009, 01:55 PM
Hi,
If I make things by downloading source (something I believe is common with Linux), I find that binaries are placed in /usr/local/lib.
However when I try to make further things which need these libraries, they expect them in /usr/lib.
Apparently I can change LD_LIBRARY_PATH, but Google says that bad things will happen if I do that. I've resorted to copying the built files to /user/lib, but that hardly seems like the right thing to do (unless it is). Most of the time I'm not even sure if I'm copying the right files!
Is there a "proper" way of dealing with this issue? It happens each time I try to make stuff, but right now I'm asking with reference to memcached and libevent.
If I make things by downloading source (something I believe is common with Linux), I find that binaries are placed in /usr/local/lib.
However when I try to make further things which need these libraries, they expect them in /usr/lib.
Apparently I can change LD_LIBRARY_PATH, but Google says that bad things will happen if I do that. I've resorted to copying the built files to /user/lib, but that hardly seems like the right thing to do (unless it is). Most of the time I'm not even sure if I'm copying the right files!
Is there a "proper" way of dealing with this issue? It happens each time I try to make stuff, but right now I'm asking with reference to memcached and libevent.