I use gsl. After I compiled my .cpp file and run it, I faced with below error:
error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
I found same as this problem in: https://groups.google.com/forum/#!topic/cortex_var/6vluX7pP0Sk & Linux error while loading shared libraries: cannot open shared object file: No such file or directory & http://www.gnu.org/software/gsl/manual/html_node/Shared-Libraries.html
And I have done as in the above links wrote but the error is still remained. Can anyone help me?
such as: to-mr: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory
In my experience, fastStructure depends on gsl 1.6 but not the latest version.
Add these lines to your
.bashrc
file on your home directory.then, run source ~/.bashrc to set these environment variables.
It works fine when I change the version from the latest to the 1.6.