Quote:
Originally Posted by greektardis
cd $(dirname "$0")
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH
Now what guys?
|
Fix the above three statements.
1) You can't be certain that the current working directory will remain unchanged.
Don't include the current working directory in any *nix path.
This isn't a Windows FHS plan, it is the Linux FHS plan.
2) Don't assume that LD_LIBRARY_PATH is empty when this is entered. Always include its current setting with your additions.
3) Use the information you have on hand in those three statements to provide an absolute path to your application's library files.