Entering edit mode
8.3 years ago
niutster
▴
110
Hi, I am trying to install "minfi" package with these commamnds: source("https://bioconductor.org/biocLite.R") biocLite("minfi"), but when R starts to install RSQLite package on Ubuntu workstation, i get this error: ERROR: compilation failed for package 'RSQLite'. R version is 3.2.3.
How can i solve it?
Can you post the full error message? It should mention why it failed.
make: * [fetch.o] Error 1 ERROR: compilation failed for package 'RSQLite' R version 3.2.3
I assume it's the same when you try
install.packages("RSQLite")
? Do you have an outdated compiler? (Check withgcc --version
in a terminal.I checked it:
gcc (GCC) 4.9.0 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Can you check
install.packages('openssl')
? I think that's the culprit. If it fails, please post the complete error message.I have downloaded openssl from https://cran.r-project.org/web/packages/openssl/index.html and installed it with this command : install.packages("/home/barjaste/openssl_0.9.4.tgz",repos=NULL,source="type") Installing package into '/home/barjaste/R/x86_64-pc-linux-gnu-library/3.2' (as 'lib' is unspecified) * installing binary package 'openssl' ... * DONE (openssl)
It sounds that the problem is for bioconductor packages not for CRAN packages.
Why do you manually download the package and install it then? Just run
install.packages('openssl')
in R terminal... Could you try with installing libssl-dev first:sudo apt-get install libssl-dev
At first, this massage appears:
Installing package into '/home/barjaste/R/x86_64-pc-linux-gnu-library/3.2' (as 'lib' is unspecified) --- Please select a CRAN mirror for use in this session --- Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL scheme HTTPS CRAN mirror
1: 0-Cloud [https] 2: Austria [https] 3: Chile [https] 4: China (Beijing 4) [https] 5: Colombia (Cali) [https] 6: France (Lyon 2) [https] 7: France (Paris 2) [https] 8: Germany (M▒nster) [https] 9: Iceland [https] 10: Mexico (Mexico City) [https] 11: Russia (Moscow) [https] 12: Spain (A Coru▒a) [https] 13: Switzerland [https] 14: UK (Bristol) [https] 15: UK (Cambridge) [https] 16: USA (CA 1) [https] 17: USA (KS) [https] 18: USA (MI 1) [https] 19: USA (TN) [https] 20: USA (TX) [https] 21: USA (WA) [https] 22: (HTTP mirrors)
after selection, it says Selection: 1 Warning: unable to access index for repository https://cran.rstudio.com/src/contrib: unsupported URL scheme Warning message: package 'openssl' is not available (for R version 3.2.3)
When i tried for the second time, it says:
Installing package into '/home/barjaste/R/x86_64-pc-linux-gnu-library/3.2' (as 'lib' is unspecified) Warning: unable to access index for repository https://cran.rstudio.com/src/contrib: unsupported URL scheme Warning message: package 'openssl' is not available (for R version 3.2.3)
For the second command: