Solved: cannot open shared object file: No such file or directory

Error: Error while loading shared cannot open shared object file: No such fle or directory

The above error may appear like as shown in the screenshot

This error occurs due to following reasons

  • GSL library is not installed
  • GSL library is installed but not added to the library path

Installing GSL Library:
This can be downloaded from here – and installed

Adding library path:
If you have installed GSL and then need to add the library path, do it like as shown below (Refer to the actual path below)

 export LD_LIBRARY_PATH="/home/location/gsl/lib"



I am a  Technical Architect who dabbles with different languages and technologies

You may also like...