Hi all, I have a situation. I'm trying to install Bioconductor pakages, but I receive only errors. I use R version 3.4.2 on Ubuntu 17.10. For the installation of Bioconductor pakages i type:
source("https://bioconductor.org/biocLite.R")
biocLite()
but i receive these erroros
> source("https://bioconductor.org/biocLite.R")
Bioconductor version 3.6 (BiocInstaller 1.28.0), ?biocLite for help
> biocLite()
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.6 (BiocInstaller 1.28.0), R 3.4.2 (2017-09-28).
Installing package(s) ‘IRanges’, ‘AnnotationDbi’
also installing the dependencies ‘BiocGenerics’, ‘S4Vectors’
provo con l'URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/BiocGenerics_0.24.0.tar.gz'
Content type 'application/x-gzip' length 43393 bytes (42 KB)
==================================================
downloaded 42 KB
provo con l'URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/S4Vectors_0.16.0.tar.gz'
Content type 'application/x-gzip' length 432152 bytes (422 KB)
==================================================
downloaded 422 KB
provo con l'URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/IRanges_2.12.0.tar.gz'
Content type 'application/x-gzip' length 485066 bytes (473 KB)
==================================================
downloaded 473 KB
provo con l'URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/AnnotationDbi_1.40.0.tar.gz'
Content type 'application/x-gzip' length 4336842 bytes (4.1 MB)
==================================================
downloaded 4.1 MB
* installing *source* package ‘BiocGenerics’ ...
** R
** inst
** preparing package for lazy loading
Creating a new generic function for ‘append’ in package ‘BiocGenerics’
Creating a new generic function for ‘as.data.frame’ in package ‘BiocGenerics’
Creating a new generic function for ‘cbind’ in package ‘BiocGenerics’
Error : identical(as.call(parse(text = old_code)[[1L]]), body[[7L]][[3L]]) is not TRUE
Error in apply_hotfix73465(getGeneric("cbind")) :
hotfix failed for generic function cbind()
Error : unable to load R code in package ‘BiocGenerics’
ERROR: lazy loading failed for package ‘BiocGenerics’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/BiocGenerics’
ERROR: dependency ‘BiocGenerics’ is not available for package ‘S4Vectors’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/S4Vectors’
ERROR: dependencies ‘BiocGenerics’, ‘S4Vectors’ are not available for package ‘IRanges’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/IRanges’
ERROR: dependencies ‘BiocGenerics’, ‘IRanges’, ‘S4Vectors’ are not available for package ‘AnnotationDbi’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.4/AnnotationDbi’
The downloaded source packages are in
‘/tmp/RtmpsCYUVP/downloaded_packages’
installation path not writeable, unable to update packages: mgcv
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘BiocGenerics’ had non-zero exit status
2: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘S4Vectors’ had non-zero exit status
3: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘IRanges’ had non-zero exit status
4: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘AnnotationDbi’ had non-zero exit status
How can I resolve this?
I usually build 'out-of-source'. Also best practice is to reserve use of sudo for the essential steps
R-3-4-2/bin/R should be executable;
if you want to install as root, though actually I don't usually do that but instead modify my shell PATH to include the location of the bin.
I used your guideline, but i receive the same error. This is the last row of configure procedure
IS there a way to resolve this?
You can either install readline ,I think
or configure R not to use readline
The former is the better solution, although the package (readline-common) is only a guess.
I tried to install readlines, but i already have it
So I tried to configure R with your tip, but
It is the same story, a missing system library, to be installed via apt-get or to configure R without. A different route through this is to install R itself via apt, following relevant instructions here https://cran.r-project.org/bin/linux/ and installing the -devel flavor. This will also install the dependencies. Then build your own R