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

后端 未结 8 774
滥情空心
滥情空心 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 07:59

    To make it work do the following steps

    Start Borne Shell

    $LD_LIBRARY_PATH= path to your gsl lib folder inside the gsl installation folder
    $export LD_LIBRARY_PATH
    

    now run your executable

    It should work fine.

提交回复
热议问题