Hi,
I am trying to install DESeq In Rstudio 0.97.555 on ubuntu 12.04 Using this command;
source("http://bioconductor.org/biocLite.R")
biocLite("DESeq")
But It gives me this error:
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [genefilter.so] Error 1
ERROR: compilation failed for package ‘genefilter’
* removing ‘/home/medhat/R/x86_64-pc-linux-gnu-library/3.0/genefilter’
ERROR: dependency ‘genefilter’ is not available for package ‘DESeq’
* removing ‘/home/medhat/R/x86_64-pc-linux-gnu-library/3.0/DESeq’
The downloaded source packages are in
‘/tmp/RtmpW5TUyM/downloaded_packages’
Old packages: 'VGAM'
I tried to install genefilter Using:
biocLite("genefilter")
It raises this Error:
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [genefilter.so] Error 1
ERROR: compilation failed for package ‘genefilter’
* removing ‘/home/medhat/R/x86_64-pc-linux-gnu-library/3.0/genefilter’
The downloaded source packages are in
‘/tmp/RtmpW5TUyM/downloaded_packages’
Old packages: 'VGAM'
Lastly I tried to install VGAM:
install.packages("VGAM")
Error:
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [VGAM.so] Error 1
ERROR: compilation failed for package ‘VGAM’
* removing ‘/home/medhat/R/x86_64-pc-linux-gnu-library/3.0/VGAM’
* restoring previous ‘/home/medhat/R/x86_64-pc-linux-gnu-library/3.0/VGAM’
Warning in install.packages :
installation of package ‘VGAM’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpW5TUyM/downloaded_packages’
any clue?
The answer is:
sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so
Are you sure that fortran libraries are installed ?
$ which gfortran
/usr/bin/gfortran