error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

后端 未结 8 776
滥情空心
滥情空心 2021-02-05 07:06

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

相关标签:
8条回答
  • 2021-02-05 08:02

    I needed libgsl.so.19:

    /snap/inkscape/current/bin/inkscape: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory

    I solved it with:

    1. Installing Anaconda
    2. searched for libgsl.so.19 and found it in ~/anaconda3/lib
    3. run LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/anaconda3/lib (best add it to ~/.basrc)
    0 讨论(0)
  • 2021-02-05 08:12
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/shg047/software/gsl/lib/
    

    such as: to-mr: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory

    0 讨论(0)
提交回复
热议问题