[英]Failing to install R oligo and RCurl packages on Linux CentOS 7
I am trying to install the Bioconductor oligo R package on my laptop where I have Linux CentOS 7. It cannot be installed through the common Bioconductor installation commands because it says that RCurl was installed for anoter Rversion and needs to be reinstalled. 我试图在装有Linux CentOS 7的笔记本电脑上安装Bioconductor oligo R软件包。它无法通过常见的Bioconductor安装命令进行安装,因为它说RCurl是为注释Rversion安装的,需要重新安装。
I tried to install it through the command: install.packages("RCurl")
but unfortunately it did not work. 我试图通过以下命令安装它:
install.packages("RCurl")
但是不幸的是它没有用。
Here's the log: 这是日志:
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
Any idea on how to make it work? 关于如何使其工作的任何想法?
I was able to install the RCurl and oligo packages in R by installing miniconda and using its R version. 通过安装miniconda并使用其R版本,我能够在R中安装RCurl和oligo软件包。
Here's what I did: 这是我所做的:
I made the file executable and then executed it. 我使该文件可执行,然后执行它。 On the shell terminal, I ran:
在shell终端上,我运行了:
chmod 777 ./Downloads/Miniconda3-latest-Linux-x86_64.sh
./Downloads/Miniconda3-latest-Linux-x86_64.sh
R
R
install.packages("RCurl");
install.packages("RCurl");
I then installed oligo: 然后我安装了oligo:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("oligo", version = "3.8")
Everything worked fine to me this way. 这样,一切对我来说都很好。 I hope it can help other people!
我希望它可以帮助其他人!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.