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.
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. 
It's like source tarballs, except that they're binary tarballs.












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.
Login or register to post comments 0 points
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
Login or register to post comments 0 points
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.
Login or register to post comments 0 points
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
Login or register to post comments 0 points