Libervis Network - For a Free WorldLibervis Projects | Nuxified Projects
Welcome guest. Register | Login | Show what's new

Do GNU/Linux programs usually check local directory for libraries?

Do GNU/Linux programs usually check local directory for libraries?

Slightly related to what I was saying here, this is a straightforward question.

I didn't compile very many programs myself so I'm wondering. How common is it for a program, once you compile it and have the binaries ready in the directory in which you ran "make", to check for libraries and dependencies in the current local path and not just paths like /usr/bin and /usr/libs.

The reason I am asking is because I have this idea of perhaps switching completely to Debian Stable, therefore getting a rock solid system, but still allowing myself to run the latest applications available from original developers by using something like Debian Backports OR, even better perhaps, compile my own software, put the resulting binaries and all their dependencies in a single archive and then uploading it for others to use.

People could then basically install those archives on pretty much any distribution - just decompress to /programs and run. I could make a script to add shortcuts to menus and/or /home/user/Desktop or a special shortcuts folder for easy access.

And if it works it could be a start of a new universal package format for ALL GNU/Linux. We could call it bin.tar.gz or something. Sticking out tongue Eventually we could even join together to build a whole repository of these kinds of packages which will work everywhere and have a special program for checking, fetching and installing them. Smiling

It's like source tarballs, except that they're binary tarballs.

__________________

Libervis.com | Discover machinima


You might use the

You might use the /usr/local-tree for this. I don't know how much you can split this off from the rest of the world, meaning that only your stuff in /usr/local looks for libraries in /usr/local, and the stuff in the system does not search for libraries there, but it might be an idea.

Hmm, by local I actually

Hmm, by local I actually meant that if I compile ProgramA within say /home/user/ProgramA and then compile some libraries elsewhere and drop them inside /home/user/ProgramA will the binary that is in that directory find the libraries in the same directory or does it usually only look for stuff in the traditional UNIX path?

Thanks

__________________

Libervis.com | Discover machinima

You may need to supply

You may need to supply LD_LIBRARY_PATH when starting the program, but then it should work.
It's been quite some time since I last played around with that.

I see, might try that then

I see, might try that then when I experiment with this. I'm possibly gonna switch to Lenny (the soon to be new Debian Stable, hence having a solid core) and then try building some newest stuff I want that way.

Thanks

__________________

Libervis.com | Discover machinima

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

We have 3884 members who wrote 2063 articles and 11943 comments. Welcome to our newest member, hutopire!

Who's online

There are currently 0 users and 5 guests online.
Nuxified RSS feed