Manuel Pizarro Gavilán
2015-Jan-15 10:09 UTC
[R-sig-Fedora] Error installing 'rgdal' on Centos 7
Hello: I can't install the ' rgdal ' package in R and ' GDAL ' on CentOS 7 (ELGIS repo added). Is there any solution? Thanks -- Manuel Pizarro EBD-CSIC
Roger Bivand
2015-Jan-15 11:29 UTC
[R-sig-Fedora] [R-sig-Geo] Error installing 'rgdal' on Centos 7
Please do not cross-post. Please do provide sufficient information to help diagnose your problem (here the output of the ./configure run during installation). Almost certainly you are trying to install from source when one or more external dependency is not satisfied. Did you read: http://cran.r-project.org/bin/linux/redhat/README and note that R-rgdal is *not* provided as a binary? Did you read: http://cran.r-project.org/web/packages/rgdal/index.html Did you download the source package and read the README file, also on R-Forge linked from the CRAN page: https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/README?view=markup&revision=409&root=rgdal Roger On Thu, 15 Jan 2015, Manuel Pizarro Gavil?n wrote:> > Hello: > > I can't install the ' rgdal ' package in R and ' GDAL ' on CentOS 7 (ELGIS > repo added). > > Is there any solution? > > Thanks > >-- Roger Bivand Department of Economics, Norwegian School of Economics, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 91 00 e-mail: Roger.Bivand at nhh.no
You don't say exactly what the problem is, but I can give you some general advice. The first thing to check on any RPM-based system is that you have the appropriate development package installed, in this case gdal-devel. I see that ELGIS does not support CentOS 7, so that might be your problem. EPEL 7 does include gdal so you might rely on their package. If neither of these are helpful then you need to be more specific. Martyn On Thu, 2015-01-15 at 11:09 +0100, Manuel Pizarro Gavil?n wrote:> Hello: > > I can't install the ' rgdal ' package in R and ' GDAL ' on CentOS 7 > (ELGIS repo added). > > Is there any solution? > > Thanks >----------------------------------------------------------------------- This message and its attachments are strictly confidenti...{{dropped:8}}
Manuel Pizarro Gavilán
2015-Jan-16 10:18 UTC
[R-sig-Fedora] Error installing 'rgdal' on Centos 7
Good morning Martyn. Thank you for your email. Some details for the problem. This is the message of the console in R: ------------------> install.packages("rgdal")Installing package into ?/home/aliendist/R/x86_64-redhat-linux-gnu-library/3.1? (as ?lib? is unspecified) probando la URL 'http://cran.rstudio.com/src/contrib/rgdal_0.9-1.tar.gz' Content type 'application/x-gzip' length 1624496 bytes (1.5 Mb) URL abierta =================================================downloaded 1.5 Mb * installing *source* package ?rgdal? ... ** package ?rgdal? successfully unpacked and MD5 sums checked configure: CC: gcc -m64 -std=gnu99 configure: CXX: g++ -m64 configure: rgdal: 0.9-1 checking for /usr/bin/svnversion... yes configure: svn revision: 518 configure: gdal-config: gdal-config checking gdal-config usability... ./configure: line 2119: gdal-config: command not found no Error: gdal-config not found The gdal-config script distributed with GDAL could not be found. If you have not installed the GDAL libraries, you can download the source from http://www.gdal.org/ If you have installed the GDAL libraries, then make sure that gdal-config is in your path. Try typing gdal-config at a shell prompt and see if it runs. If not, use: --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' with appropriate values for your installation. ERROR: configuration failed for package ?rgdal? * removing ?/home/aliendist/R/x86_64-redhat-linux-gnu-library/3.1/rgdal? Warning in install.packages : installation of package ?rgdal? had non-zero exit status The downloaded source packages are in ?/tmp/Rtmpeaf9P4/downloaded_packages?>------------------- I tried to install gdal -dev and gdal but it is impossible. Regards, Manuel Martyn Plummer <plummerm at iarc.fr> escribi?:> You don't say exactly what the problem is, but I can give you some > general advice. > > The first thing to check on any RPM-based system is that you have the > appropriate development package installed, in this case gdal-devel. > > I see that ELGIS does not support CentOS 7, so that might be your > problem. EPEL 7 does include gdal so you might rely on their package. > > If neither of these are helpful then you need to be more specific. > > Martyn > > On Thu, 2015-01-15 at 11:09 +0100, Manuel Pizarro Gavil?n wrote: >> Hello: >> >> I can't install the ' rgdal ' package in R and ' GDAL ' on CentOS 7 >> (ELGIS repo added). >> >> Is there any solution? >> >> Thanks >> > > ----------------------------------------------------------------------- > This message and its attachments are strictly confiden...{{dropped:13}}
Manuel Pizarro Gavilán
2015-Jan-16 10:19 UTC
[R-sig-Fedora] [R-sig-Geo] Error installing 'rgdal' on Centos 7
Hello Roger: Thank you for your email. Some details for the problem. This is the message of the console in R: ------------------ install.packages("rgdal") Installing package into ?/home/aliendist/R/x86_64-redhat-linux-gnu-library/3.1? (as ?lib? is unspecified) probando la URL 'http://cran.rstudio.com/src/contrib/rgdal_0.9-1.tar.gz' Content type 'application/x-gzip' length 1624496 bytes (1.5 Mb) URL abierta =================================================downloaded 1.5 Mb * installing *source* package ?rgdal? ... ** package ?rgdal? successfully unpacked and MD5 sums checked configure: CC: gcc -m64 -std=gnu99 configure: CXX: g++ -m64 configure: rgdal: 0.9-1 checking for /usr/bin/svnversion... yes configure: svn revision: 518 configure: gdal-config: gdal-config checking gdal-config usability... ./configure: line 2119: gdal-config: command not found no Error: gdal-config not found The gdal-config script distributed with GDAL could not be found. If you have not installed the GDAL libraries, you can download the source from http://www.gdal.org/ If you have installed the GDAL libraries, then make sure that gdal-config is in your path. Try typing gdal-config at a shell prompt and see if it runs. If not, use: --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' with appropriate values for your installation. ERROR: configuration failed for package ?rgdal? * removing ?/home/aliendist/R/x86_64-redhat-linux-gnu-library/3.1/rgdal? Warning in install.packages : installation of package ?rgdal? had non-zero exit status The downloaded source packages are in ?/tmp/Rtmpeaf9P4/downloaded_packages? ------------------- I tried to install gdal -dev and gdal but it is impossible. Regards, Manuel Roger Bivand <Roger.Bivand at nhh.no> escribi?:> Please do not cross-post. Please do provide sufficient information > to help diagnose your problem (here the output of the ./configure > run during installation). Almost certainly you are trying to install > from source when one or more external dependency is not satisfied. > Did you read: > > http://cran.r-project.org/bin/linux/redhat/README > > and note that R-rgdal is *not* provided as a binary? > > Did you read: > > http://cran.r-project.org/web/packages/rgdal/index.html > > Did you download the source package and read the README file, also > on R-Forge linked from the CRAN page: > > https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/README?view=markup&revision=409&root=rgdal > > Roger > > > On Thu, 15 Jan 2015, Manuel Pizarro Gavil?n wrote: > >> >> Hello: >> >> I can't install the ' rgdal ' package in R and ' GDAL ' on CentOS 7 >> (ELGIS repo added). >> >> Is there any solution? >> >> Thanks >> >> > > -- > Roger Bivand > Department of Economics, Norwegian School of Economics, > Helleveien 30, N-5045 Bergen, Norway. > voice: +47 55 95 93 55; fax +47 55 95 91 00 > e-mail: Roger.Bivand at nhh.no-- Manuel Pizarro EBD-CSIC