我正在尝试在装有Linux CentOS 7的笔记本电脑上安装Bioconductor oligo R软件包。 无法通过通用的Bioconductor安装命令进行安装,因为它说已为Rnot注释安装了RCurl,并且需要重新安装。
我尝试通过以下命令安装它:install.packages("RCurl")
但不幸的是,它没有用。
这是日志:
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/davide/R/x86_64-redhat-linux-gnu-library/3.5/RCurl/libs/RCurl.so':
libiconv.so.2: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted ERROR: loading failed
* removing ‘/home/davide/R/x86_64-redhat-linux-gnu-library/3.5/RCurl’
The downloaded source packages are in ‘/tmp/RtmpAcmmPE/downloaded_packages’ Warning message: In install.packages("RCurl") : installation of package ‘RCurl’ had non-zero exit status
关于如何使其工作的任何想法?
答案 0 :(得分:0)
我能够通过安装miniconda并使用其R版本在R中安装RCurl和oligo软件包。
这就是我所做的:
我使文件可执行,然后执行了它。在Shell终端上,我运行了:
chmod 777 ./Downloads/Miniconda3-latest-Linux-x86_64.sh
./Downloads/Miniconda3-latest-Linux-x86_64.sh
R
install.packages("RCurl");
然后我安装了oligo:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("oligo", version = "3.8")
这种方式对我来说一切正常。我希望它可以帮助其他人!