How to make custom libraries accessible?

Posted by Milen Bilyanov on Programmers See other posts from Programmers or by Milen Bilyanov
Published on 2012-07-03T21:56:05Z Indexed on 2012/07/04 3:22 UTC
Read the original article Hit count: 283

I am trying to compile and install every custom module under it's own designated folder. (ex: /myApps/myLinux/compiled_app)

I had luck with python so far, where my python is compiled from source and lives in: /myApps/myLinux/python2.5 and "python2.5" -> /myApps/myLinux/python2.5.6-gcc463

so I can access this python through a wrapper script that sets the right environment.

The question is recently I had to compile and add something called gperf3.0.4. So now it lives: /myApps/myLinux/gperf3.0 and "gperf3.0" -> /myApps/myLinux/gperf3.0.4-gcc463

The question is: How will I point to this lib if some other app needs to access it? Is it done through the LD_LIBRARY_PATH variable?

Thanks.

© Programmers or respective owner

Related posts about linux

Related posts about libraries