在 FSL虚拟机 CentOS linux系统中安装ANFI包,期望Resample DTI和fMRI数据。
首先,按照官方按照教程step-by-step安装软件,直到suma -update_env一步一切都正常。但suma回车之后报错

(base) [fsluser@fsl ~]$ suma -update_env
bash: suma: command not found...
Similar command is: 'sum'

这里报错的原因是漏掉了教程中,更新环境变量一步。这里稍稍吐槽一下自己的粗心,直接忽略掉教程中的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相关推荐

  1. 报错解决:cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such fi

    我的个人博客:zhang0peter的个人博客 先说一下为什么会发生这个错误,我看这篇博客:分享Centos6.5升级glibc过程 ,里面提到了如下命令: $ rm -rf /lib64/libc. ...

  2. ./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s

    在安装ffmpeg时,执行完 ./configure--enable-libx264 --enable-gpl --disable-yasm --prefix=/usr/local/ffmpeg ma ...

  3. linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object

    原因:64位 linux 机器缺少32位lib相关的支持库 如果yum 服务器上有 相关的库最好使用 yum 安装,其他 博客上使用 apt-file 安装. 查看libz.so.1属于 glic 库 ...

  4. 错误./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file:

    之前一直想在ARM 上跑qt,但都出现错误: ./hello: error while loading shared libraries: libQtGui.so.4: cannot open sha ...

  5. ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such

    [root@iZbp10xlek93e0is7ye8o6Z bin]# ./mysqld --user=mysql --basedir=/usr/local/mysql-8.0 --datadir=/ ...

  6. ./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No suc

    ./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No suc ...

  7. nginx启动报错 :./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object fi

    jnydjky@jnydjky:/usr/local/nginx/sbin$ ./nginx ./nginx: error while loading shared libraries: libpcr ...

  8. 报错:error while loading shared libraries: libz.so.1: cannot open shared object file

    OS: Kali linux Compile toolchian: arm-none-linux-gnueabi# arm-none-linux-gnueabi-gcc hook.c arm-linu ...

  9. 启动Nginx时报错:error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No

    安装了Nginx之后,启动时报错: error while loading shared libraries: librdkafka.so.1: cannot open shared object f ...

最新文章

  1. Go 领军人物谢孟军:智能制造渴望银弹,首先要摒弃偏见
  2. ASP.NET 网站路径[转载]
  3. 高等数学第七版-习题解答:总复习3
  4. boost::hana::all用法的测试程序
  5. 刘志勇:微博短视频百万级高并发架构
  6. WdatePicker 设置日期第一个比第二个的日期小
  7. 学习Spring Boot:(八)Mybatis使用分页插件PageHelper
  8. 计算机职业英语一级,计算机职业英语一级
  9. 电脑怎么用c语言写丘比特,转载乌鸦丘比特 的24点程序
  10. OpenGL库 资源下载
  11. python二手房课程设计_基于python爬取链家二手房信息代码示例
  12. 两数求和(C语言超简单解法)
  13. 元宇宙PlatoFarm万众瞩目,同时登录HUOBI等全球四大平台
  14. matlab 采样点数,信号频率、采样频率、采样点数
  15. 学习如何合理的配置服务器
  16. 无人驾驶:高精地图与定位
  17. JS实现图片大小自适应且位置居中,防止图片变形
  18. python开发魔塔(1)
  19. matlab 画阻尼振荡信号及其包络线
  20. POJ4110圣诞老人的礼物

热门文章

  1. 第二银河消息窗口 彩色字体,超大字体实现方法
  2. 纪中20日c组模拟赛T1 2121. 简单游戏
  3. Python 函数 sort(),sorted() 之区别及 key=lambda x:x[] 之理解
  4. Noteability的一些使用小技巧
  5. ubuntu18.04 alt+ctrl+t 无响应解决方法
  6. 苹果手机的html 手势,点击事件
  7. html5 动画Ilove送给他(她)
  8. ggplot2+ggparttern 条形图纹理图案填充加显著性标注教程
  9. 2021高考成绩等位线查询四川,泸州医学院的麻醉专业收分请问下四川考生一 – 手机爱问...
  10. 点开计算机桌面选项怎么不见了,电脑桌面开始菜单不见了应该如何解决?_开始菜单不见了解决办法介绍...