Hello
I have a user account on a large computer at my university. There I am supposed to test some code, I developed at home.
I successfully ported what needed to be ported, successfully compiled and linked my code.
I defined on the command line
Code:
gcc -o whatever whatever.c something.c -L. -llibrary1 -llibrary2 ...
This works fine, but when I try to execute
./whatever
I get the message:
Code:
error while loading shared libraries: liblibrary1.so: cannot open shared object file: No such file or directory
The file exists only in the same path as my program does, and I don't have permission to copy it to some place like /usr/lib, I don't even know where I'd copy it if I could.
So my question: how can I tell the program to load the .so from the same path the program is? Do I need to export some env_var? If so, which env_var should be exported?
Thanks for your help.
raven