RHEL 6 installed R version 3.2.3 from EPEL installed Start R and use the following command, but got warnings! install.packages("rstan", dependencies = TRUE, repos = "http://cran.r-project.org/") ... g++ -m64 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o RcppEigen.so RcppEigen.o RcppExports.o fastLm.o -L/usr/lib64/R/lib -lRlapack -L/usr/lib64/R/lib -lRblas -lgfortran -lm -L/usr/lib64/R/lib -lR /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make: *** [RcppEigen.so] Error 1 ERROR: compilation failed for package 'RcppEigen' * removing '/usr/lib64/R/library/RcppEigen' ... ** package 'RCurl' successfully unpacked and MD5 sums checked checking for curl-config... no Cannot find curl-config ERROR: configuration failed for package 'RCurl' * removing '/usr/lib64/R/library/RCurl' ... ERROR: dependency 'RcppEigen' is not available for package 'rstan' * removing '/usr/lib64/R/library/rstan' ... 1: In install.packages("rstan", dependencies = TRUE, repos = "http://cran.r-project.org/") : installation of package 'RcppEigen' had non-zero exit status 2: In install.packages("rstan", dependencies = TRUE, repos = "http://cran.r-project.org/") : installation of package 'RCurl' had non-zero exit status 3: In install.packages("rstan", dependencies = TRUE, repos = "http://cran.r-project.org/") : installation of package 'rstan' had non-zero exit status Like to find a fix for items 1 and 2 as that should fix 3 :) Where should I begin? Thanks, Larry Patrick [[alternative HTML version deleted]]
On 01/27/2016 01:12 PM, Patrick, Larry B [CSSM] wrote:> RHEL 6 installed > R version 3.2.3 from EPEL installed > > Start R and use the following command, but got warnings! > > install.packages("rstan", dependencies = TRUE, repos = "http://cran.r-project.org/") > ... > g++ -m64 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o RcppEigen.so RcppEigen.o RcppExports.o fastLm.o -L/usr/lib64/R/lib -lRlapack -L/usr/lib64/R/lib -lRblas -lgfortran -lm -L/usr/lib64/R/lib -lR > /usr/bin/ld: cannot find -lgfortran > collect2: error: ld returned 1 exit statusInstall the gcc-gfortran package.> checking for curl-config... no > Cannot find curl-configInstall the curl-devel package (it might also be called libcurl-devel). hth, ~tom =Red Hat
Confirmed that gcc-gfortran is installed Package gcc-gfortran-4.4.7-16.el6.x86_64 already installed and latest version What could I check next? I do not have the following installed and will get that done and tested again. libcurl-devel libidn-devel Thanks, Larry -----Original Message----- From: Tom Callaway [mailto:tcallawa at redhat.com] Sent: Wednesday, January 27, 2016 12:32 PM To: Patrick, Larry B [CSSM] <longplay at iastate.edu>; 'r-sig-fedora at r-project.org' <r-sig-fedora at r-project.org> Subject: Re: [R-sig-Fedora] rstan warning messages On 01/27/2016 01:12 PM, Patrick, Larry B [CSSM] wrote:> RHEL 6 installed > R version 3.2.3 from EPEL installed > > Start R and use the following command, but got warnings! > > install.packages("rstan", dependencies = TRUE, repos = > "http://cran.r-project.org/") ... > g++ -m64 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o RcppEigen.so > g++ RcppEigen.o RcppExports.o fastLm.o -L/usr/lib64/R/lib -lRlapack > g++ -L/usr/lib64/R/lib -lRblas -lgfortran -lm -L/usr/lib64/R/lib -lR > /usr/bin/ld: cannot find -lgfortran > collect2: error: ld returned 1 exit statusInstall the gcc-gfortran package.> checking for curl-config... no > Cannot find curl-configInstall the curl-devel package (it might also be called libcurl-devel). hth, ~tom =Red Hat