无法安装套件GenomicAlignments

时间:2018-09-24 22:48:42

标签: r bioinformatics

请为此提出解决方案。谢谢!

我一直在尝试安装此软件包GenomicAlignments,并不断出现此错误:

> install.packages("GenomicAlignments")
Installing package into ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
> library(GenomicAlignments)
Error in library(GenomicAlignments) : 
  there is no package called ‘GenomicAlignments’

我还尝试了biocLite("GenomicAlignments"),并且在下面也给出了此错误:

trying URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/GenomicAlignments_1.14.2.tar.gz'
Content type 'application/x-gzip' length 2315965 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/RCurl’
ERROR: dependency ‘RCurl’ is not available for package ‘GenomeInfoDb’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/GenomeInfoDb’
ERROR: dependency ‘GenomeInfoDb’ is not available for package ‘GenomicRanges’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/GenomicRanges’
ERROR: dependencies ‘GenomicRanges’, ‘GenomeInfoDb’ are not available for package ‘SummarizedExperiment’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/SummarizedExperiment’
ERROR: dependencies ‘GenomeInfoDb’, ‘GenomicRanges’ are not available for package ‘Rsamtools’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/Rsamtools’
ERROR: dependencies ‘GenomeInfoDb’, ‘GenomicRanges’, ‘SummarizedExperiment’, ‘Rsamtools’ are not available for package ‘GenomicAlignments’
* removing ‘/home/owner/R/x86_64-pc-linux-gnu-library/3.4/GenomicAlignments’

The downloaded source packages are in
    ‘/tmp/RtmpiIVoKs/downloaded_packages’
installation path not writeable, unable to update packages: cluster,
  foreign, MASS, Matrix, mgcv, nlme, survival

1 个答案:

答案 0 :(得分:0)

此解决方案:

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libxml2-dev

结果是在Linux上缺少“ RCurl”。