problem for installing "rgdal" package in r
Yung-wei, If you read through this, it is one of the more instructive error messages you are likely to receive, so I would suggest that you work through the steps it suggests. My guess is that if you are on a shared machine, the gdal libraries are not installed, and you will have to speak to your administrators about installing them.
./configure: line 2013: gdal-config: command not found 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/
You may need to get help from admins to do this on a shared machine.
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.
You will have to look at the help for install.packages for details on how to do this - watch out for the quoting. cheers Ben
On 06/09/2011, at 1:03 PM, ? ?? wrote:
Hi Ben, Thanks for your remider and the following is the whole information I got: Installing package(s) into ?/home/yungweichen/R/i486-pc-linux-gnu-library/2.13? (as ?lib? is unspecified) trying URL 'http://cran.cs.wwu.edu/src/contrib/rgdal_0.7-1.tar.gz' Content type 'application/x-gzip' length 1432509 bytes (1.4 Mb) opened URL ================================================== downloaded 1.4 Mb * installing *source* package ?rgdal? ... gdal-config: gdal-config ./configure: line 2013: gdal-config: command not found 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/yungweichen/R/i486-pc-linux-gnu-library/2.13/rgdal? The downloaded packages are in ?/tmp/RtmpjttzmJ/downloaded_packages? Warning message: In install.packages("rgdal") : installation of package 'rgdal' had non-zero exit status Yung-wei
Subject: Re: [R-sig-Geo] problem for installing "rgdal" package in r From: lists at remoteinformation.com.au Date: Tue, 6 Sep 2011 12:51:49 +0800 CC: r-sig-geo at r-project.org To: robin50488 at hotmail.com At a guess your error message was slightly longer than you have posted below - which only says that the install failed. The more information you provide the better your chances of help... cheers Ben On 06/09/2011, at 12:27 PM, ? ?? wrote:
Hi, I am a begginner using R in Linux system and I am doing some spatial research. Recently, I tried to install "rgdal" package in Linux system but I got the error message "installation of package 'rgdal' had non-zero exit status". It is impossible I can update the version of R because it is our department system. Therefore, I wonder if there is any other ways to install package. Can you help me to deal with this problem? Thank you in advance. Yung-wei Chen [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo