這次在新的服務(wù)器上安裝gfold的時(shí)候卖怜,偶然發(fā)現(xiàn)GFOLD的官網(wǎng)已經(jīng)404了忙灼,于是索性就conda一套進(jìn)行安裝
conda install -c bioconda gfold
但是在調(diào)試gfold的時(shí)候,發(fā)現(xiàn)直接調(diào)用會(huì)報(bào)錯(cuò):
gfold: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or director
嘗試解決:
直接在本目錄下find該缺失文件是否存在:
find ~/ -name libgsl.so.0
谢肾,發(fā)現(xiàn)沒(méi)有該文件存在(當(dāng)然沒(méi)有該文件存在啦,不然怎么會(huì)報(bào)錯(cuò)呢)
搜索結(jié)果
事實(shí)上這個(gè)文件是GNU Scientific Library里面的一部分册倒,于是我也想當(dāng)然的安裝了gsl冕屯,但是報(bào)錯(cuò)依舊存在桐早。
有人提出,是否是路徑的問(wèn)題并提出了解決的辦法:
$LD_LIBRARY_PATH= path to your gsl lib folder inside the gsl installation folder
$export LD_LIBRARY_PATH
但是我嘗試以后也并沒(méi)有解決栈戳,直到我突然反映過(guò)來(lái)這是不是就是常見(jiàn)的李逵李鬼問(wèn)題岂傲,于是我就:
find ~/ -name libgsl*
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgsl.la
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgslcblas.la
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgsl.so
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgslcblas.so
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgslcblas.so.0
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgslcblas.so.0.0.0
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgsl.so.23.0.0
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgsl.so.23
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgslcblas.a
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h14c3975_4/lib/libgsl.a
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgslcblas.so
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgsl.so
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgsl.so.23
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgslcblas.so.0
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgsl.so.23.0.0
/home/wanglab/biosoft/anaconda3/pkgs/gsl-2.4-h294904e_1006/lib/libgsl.a
/home/wanglab/biosoft/anaconda3/lib/libgsl.a
/home/wanglab/biosoft/anaconda3/lib/libgsl.so
/home/wanglab/biosoft/anaconda3/lib/libgsl.so.23
/home/wanglab/biosoft/anaconda3/lib/libgsl.so.23.0.0
/home/wanglab/biosoft/anaconda3/lib/libgslcblas.so
/home/wanglab/biosoft/anaconda3/lib/libgslcblas.so.0
問(wèn)題解決
事實(shí)上gsl是沒(méi)有l(wèi)ibgsl.so.0的,但是又libgsl.so子檀,原來(lái)就是libgsl.so和libgsl.so.0的親戚關(guān)系镊掖,于是一個(gè)硬鏈接解決問(wèn)題:ln /home/wanglab/biosoft/anaconda3/lib/libgsl home/wanglab/biosoft/anaconda3/lib/libgsl.so.0