Add new comment

error while loading shared libraries: libraw.so.15: cannot open shared object file

I've installed libRaw and am compiling the sample .cpp file provided by this command (seen from another discussion):
>> g++ libRaw.cpp -o q -lraw -lm
However, when i run the file,
>> ./q
I get the following error:
./q: error while loading shared libraries: libraw.so.15: cannot open shared object file: No such file or directory

As far as I know, I think this is a linkage problem, however, the path provided in the 'libraw.la' file for 'libraw.so.15' is correctly specified under libdir='/usr/local/lib'.

Please help :)

Forums: