Problem statement :
When you run the executable in putty and get the below message,
"..cannot open shared object file: No such file or directory..". This is in spite of the fact that the file is actually present.
Solution :
This is actually the case of missing libraries. You can check this by running the below command:
ldd /path/to/file and you will get the output with one or several files being listed as "not found"
Now search for all the files which are being referred as "not found" using the find command.Then add the path of these files to LD_LIBRARY_PATH.Now, export it and try to run the application again.
This time you should be able to run successfully!
When you run the executable in putty and get the below message,
"..cannot open shared object file: No such file or directory..". This is in spite of the fact that the file is actually present.
Solution :
This is actually the case of missing libraries. You can check this by running the below command:
ldd /path/to/file and you will get the output with one or several files being listed as "not found"
Now search for all the files which are being referred as "not found" using the find command.Then add the path of these files to LD_LIBRARY_PATH.Now, export it and try to run the application again.
This time you should be able to run successfully!
No comments:
Post a Comment