Sunday, August 2, 2009

Moving the executable in unix?

Hi all,


I am oving an executable from one unix machine to another. while compiling, I have used oracle libs installed in that system as static links. now, in my new unix box, the oracle is installed in diff directory stucture.


when I try to run the executable, it is trying to access the lib from old path.


but, I need to set it to new path....


How do I go about?


chatr or ldd will work?

Moving the executable in unix?
Yes. There is a way to overcome with this problem using chatr.





let's say the hard-coded file is as '/home/user/lib.sl' and your exe is 'myexe'





Then give the following command:





chatr -l /home/user/lib.sl myexe





The dynamic library is now fully dynamically linked, otherwise it was partially static.

yugioh cards

No comments:

Post a Comment