You have to use LD_LIBRARY_PATH. This is not Windows. In Unix/Linux, unless you explicitly add the current directory (".") to the PATH/LD_LIBRARY_PATH, it will *NOT* be searched. And it's a good thing that it was designed like that.