suma: error while loading shared libraries: libGLw.so.1: cannot open shared object file: No such
在 FSL虛擬機 CentOS linux系統中安裝ANFI包,期望Resample DTI和fMRI數據。
首先,按照官方按照教程step-by-step安裝軟件,直到suma -update_env一步一切都正常。但suma回車之后報錯
這里報錯的原因是漏掉了教程中,更新環境變量一步。這里稍稍吐槽一下自己的粗心,直接忽略掉教程中的Purpose內容:
Purpose: Download and unpack the current binaries in your $HOME directory; set the AFNI binary directory name to $HOME/abin/; and add that location to the $PATH in both ~/.cshrc and ~/.bashrc.
折騰了十幾分鐘無用功。而實際上,只要將環境變量更新,就可以找到suma命令。
export PATH=/home/fsluser/Antsbin/bin:$PATH但隨后執行
(base) [fsluser@fsl ~]$ suma -update_env suma: error while loading shared libraries: libGLw.so.1: cannot open shared object file: No such file or directory還是報錯,缺少依賴關系。根據官方的論壇提示,重新下載了包,命令就可以正常執行了。
(base) [fsluser@fsl ~]$ sudo yum install -y mesa-libGLw mesa-libGLU緊接著安裝R,經過長時間的下載和配置,最終也報了很多包依賴關系的錯誤。
/bin/sh ../libtool --tag=CC --mode=link g++ -m64 -std=gnu++11 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -o libutil.la mt19937ar.lo sobolseq.lo timer.lo stop.lo redblack.lo qsort_r.lo rescale.lo -lm libtool: link: ERROR: no information for variable 'AR' cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o ../libtool: line 1102: ERROR:: command not found make[2]: *** [libutil.la] Error 127 make[2]: Leaving directory `/tmp/Rtmpdkk37t/R.INSTALL383c1f9e7cbf/nloptr/src/nlopt_src/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/Rtmpdkk37t/R.INSTALL383c1f9e7cbf/nloptr/src/nlopt_src' make: *** [all] Error 2 ERROR: configuration failed for package ‘nloptr’ * removing ‘/home/fsluser/R/nloptr’ ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’ * removing ‘/home/fsluser/R/httr’ ERROR: dependency ‘curl’ is not available for package ‘rio’ * removing ‘/home/fsluser/R/rio’ ERROR: dependency ‘curl’ is not available for package ‘V8’ * removing ‘/home/fsluser/R/V8’ ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘rsconnect’ * removing ‘/home/fsluser/R/rsconnect’ ERROR: dependency ‘igraph’ is not available for package ‘threejs’ * removing ‘/home/fsluser/R/threejs’ ERROR: dependency ‘units’ is not available for package ‘sf’ * removing ‘/home/fsluser/R/sf’ ERROR: dependency ‘nloptr’ is not available for package ‘lme4’ * removing ‘/home/fsluser/R/lme4’ ERROR: dependencies ‘png’, ‘jpeg’ are not available for package ‘latticeExtra’ * removing ‘/home/fsluser/R/latticeExtra’ ERROR: dependency ‘gsl’ is not available for package ‘rtdists’ * removing ‘/home/fsluser/R/rtdists’ ERROR: dependency ‘cubature’ is not available for package ‘MCMCglmm’ * removing ‘/home/fsluser/R/MCMCglmm’ ERROR: dependencies ‘xml2’, ‘httr’ are not available for package ‘rvest’ * removing ‘/home/fsluser/R/rvest’ ERROR: dependency ‘httr’ is not available for package ‘plotly’ * removing ‘/home/fsluser/R/plotly’ ERROR: dependency ‘lme4’ is not available for package ‘gamm4’ * removing ‘/home/fsluser/R/gamm4’ ERROR: dependency ‘latticeExtra’ is not available for package ‘Hmisc’ * removing ‘/home/fsluser/R/Hmisc’ ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’ * removing ‘/home/fsluser/R/pbkrtest’ ERROR: dependency ‘lme4’ is not available for package ‘mlmRev’ * removing ‘/home/fsluser/R/mlmRev’ ERROR: dependency ‘lme4’ is not available for package ‘MEMSS’ * removing ‘/home/fsluser/R/MEMSS’ ERROR: dependency ‘lme4’ is not available for package ‘effects’ * removing ‘/home/fsluser/R/effects’ ERROR: dependency ‘lme4’ is not available for package ‘glmmTMB’ * removing ‘/home/fsluser/R/glmmTMB’ ERROR: dependency ‘V8’ is not available for package ‘rstan’ * removing ‘/home/fsluser/R/rstan’ ERROR: dependency ‘sf’ is not available for package ‘spdep’ * removing ‘/home/fsluser/R/spdep’ ERROR: dependency ‘lme4’ is not available for package ‘lmerTest’ * removing ‘/home/fsluser/R/lmerTest’ ERROR: dependencies ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’ * removing ‘/home/fsluser/R/tidyverse’ ERROR: dependencies ‘pbkrtest’, ‘rio’, ‘lme4’ are not available for package ‘car’ * removing ‘/home/fsluser/R/car’ ERROR: dependency ‘plotly’ is not available for package ‘ggResidpanel’ * removing ‘/home/fsluser/R/ggResidpanel’ ERROR: dependencies ‘rsconnect’, ‘rstan’, ‘threejs’ are not available for package ‘shinystan’ * removing ‘/home/fsluser/R/shinystan’ ERROR: dependencies ‘lme4’, ‘Hmisc’ are not available for package ‘arm’ * removing ‘/home/fsluser/R/arm’ ERROR: dependency ‘car’ is not available for package ‘rstatix’ * removing ‘/home/fsluser/R/rstatix’ ERROR: dependencies ‘lme4’, ‘rstan’, ‘shinystan’ are not available for package ‘rstanarm’ * removing ‘/home/fsluser/R/rstanarm’ ERROR: dependencies ‘lme4’, ‘tidyverse’, ‘gamm4’ are not available for package ‘projpred’ * removing ‘/home/fsluser/R/projpred’ ERROR: dependencies ‘lme4’, ‘pbkrtest’, ‘lmerTest’, ‘car’ are not available for package ‘afex’ * removing ‘/home/fsluser/R/afex’ ERROR: dependency ‘car’ is not available for package ‘phia’ * removing ‘/home/fsluser/R/phia’ ERROR: dependency ‘rstatix’ is not available for package ‘ggpubr’ * removing ‘/home/fsluser/R/ggpubr’ ERROR: dependencies ‘rstan’, ‘shinystan’, ‘projpred’ are not available for package ‘brms’ * removing ‘/home/fsluser/R/brms’The downloaded source packages are in‘/tmp/RtmpsSHv4W/downloaded_packages’++ Note: @ 16:22:48This package has been installed on the computer: afexThis package has been installed on the computer: phiaThis package has been installed on the computer: lmerTestThis package has been installed on the computer: brmsThere were 44 warnings (use warnings() to see them)根據GitHub上的建議,我在R環境中,手動安裝nloptr包。
install.packages("nloptr")但仍然不成功,報錯缺少libtool的link。
libtool: link: ERROR: no information for variable 'AR' cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o ../libtool: line 1102: ERROR:: command not found make[2]: *** [libutil.la] Error 127 make[2]: Leaving directory `/tmp/RtmpWWS18t/R.INSTALL49983990066e/nloptr/src/nlopt_src/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/RtmpWWS18t/R.INSTALL49983990066e/nloptr/src/nlopt_src' make: *** [all] Error 2 ERROR: configuration failed for package ‘nloptr’ * removing ‘/usr/lib64/R/library/nloptr’The downloaded source packages are in‘/tmp/RtmpiYvBm8/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning message: In install.packages("nloptr") :installation of package ‘nloptr’ had non-zero exit status后來,看到stackoverflow上多條意見都指向了R包的版本不一致問題,如鏈接一, 鏈接二,和鏈接三。最終根據建議,手動指定安裝包的版本,nloptr包在R中就能被成功安裝。
packageurl <- "https://cran.r-project.org/src/contrib/Archive/nloptr/nloptr_1.2.1.tar.gz"; install.packages(packageurl, repos=NULL, type="source");總結
以上是生活随笔為你收集整理的suma: error while loading shared libraries: libGLw.so.1: cannot open shared object file: No such的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: proc wifi 开启_一步一步教你解
- 下一篇: Qt5构建出错问题解决办法:为项目unt