I am facing problems to install the DESeq2 package on my linux laptop. I have read many posts and tried the different tips across, but none have worked so far.
Here are the DESEq2 installation errors:
> if (!requireNamespace("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
> BiocManager::install("DESeq2", version = "3.8")
Bioconductor version 3.8 (BiocManager 1.30.4), R 3.5.2 (2018-12-20)
Installing package(s) 'DESeq2'
also installing the dependency ‘RcppArmadillo’
essai de l'URL 'https://cloud.r-project.org/src/contrib/RcppArmadillo_0.9.200.7.0.tar.gz'
Content type 'application/x-gzip' length 1333647 bytes (1.3 MB)
==================================================
downloaded 1.3 MB
essai de l'URL 'https://bioconductor.org/packages/3.8/bioc/src/contrib/DESeq2_1.22.2.tar.gz'
Content type 'application/x-gzip' length 2062838 bytes (2.0 MB)
==================================================
downloaded 2.0 MB
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ correctement décompressé et sommes MD5 vérifiées
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking whether g++ version is sufficient... yes, with OpenMP as version 5.4.0
checking for macOS... checking LAPACK_LIBS... system LAPACK found
checking for OpenMP... found and suitable
configure: creating ./config.status
config.status: creating inst/include/RcppArmadilloConfigGenerated.h
config.status: creating src/Makevars
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I"/home/me/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I../inst/include -fopenmp -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppArmadillo.cpp -o RcppArmadillo.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I"/home/me/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I../inst/include -fopenmp -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I"/home/me/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I../inst/include -fopenmp -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c fastLm.cpp -o fastLm.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -fopenmp -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld : ne peut trouver -llapack
/usr/bin/ld : ne peut trouver -lblas
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6 : la recette pour la cible « RcppArmadillo.so » a échouée
make: *** [RcppArmadillo.so] Erreur 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/me/R/x86_64-pc-linux-gnu-library/3.5/RcppArmadillo’
ERROR: dependency ‘RcppArmadillo’ is not available for package ‘DESeq2’
* removing ‘/home/me/R/x86_64-pc-linux-gnu-library/3.5/DESeq2’
The downloaded source packages are in
‘/tmp/RtmpPTfc02/downloaded_packages’
installation path not writeable, unable to update packages: evaluate
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘RcppArmadillo’ had non-zero exit status
2: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘DESeq2’ had non-zero exit status
Here are the essential info of my configuration:
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.5 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so
locale:
[1] LC_CTYPE=fr_FR.UTF-8 LC_NUMERIC=C LC_TIME=fr_FR.UTF-8 LC_COLLATE=fr_FR.UTF-8
[5] LC_MONETARY=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] BiocManager_1.30.4 compiler_3.5.2 tools_3.5.2 yaml_2.2.0
Few installations already done and tested but none solved the problem (I got the same errors after trying to reinstall DESeq2):
me@xmglaptop:~$ sudo apt-get install libcurl4-openssl-dev libxml2-dev
me@xmglaptop:~$ sudo apt install gfortran
me@xmglaptop:~$ curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
me@xmglaptop:~$ sudo tar fvxz gmp-4.2.4-darwin8-bin4.tar.gz -C /
me@xmglaptop:~$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 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.
me@xmglaptop:~$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 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.
me@xmglaptop:~$ gfortran --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
Few related posts without found solution in my case: https://support.bioconductor.org/p/90994/ https://stackoverflow.com/questions/421 … -not-found https://github.com/sagemath/cloud/issues/114 https://stackoverflow.com/questions/206 … -and-rcurl https://support.bioconductor.org/p/100517/ https://support.bioconductor.org/p/54381/ https://support.bioconductor.org/p/76093/ http://bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#FAQ
If you have any solution, tips, idea, suggestion, whatever, I would be very grateful, I really need to use urgently the package. Many thanks in advance for your help. Best regards.