I found a way to change the library path that you need to set with LD_LIBRARY_PATH.
Read and replace the library path(s)PHP Code:
sudo apt-get install chrpath
Now LD_LIBRARY_PATH is no longer required.PHP Code:
chrpath libcod2.so # read without replacing
chrpath -r .:libs libcod2.so # replace
http://linux.die.net/man/1/chrpath