An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110906/6a1a2612/attachment.pl>
problem for installing "rgdal" package in r
7 messages · 陳 永偉, Ben Madin, Julian Zeidler +1 more
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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110906/67345852/attachment.pl>
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
Hi Yung-wei, I had simislar Problems when first isntalling rgdal on my machine. It is due to missing (Linux-)Packages, that R needs to compile its bindings with gdal. In my case ( on a Ubuntu System) the required packages where: gdal-bin, libgdal1-dev, libproj-dev, build-essential. There might have been more or i had previously installed them. If you are on a different Distribution the names might be slightly different, but your Admin should be able to figure it out. best, Julian Am 06.09.2011 07:55, schrieb Ben Madin:
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
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
This question has been asked here before. Which distribution are you using? If you are using debian or ubuntu the admin should install libgdal1-dev for building gdal. I also recommend installing r-base-dev if it is not yet installed. It is needed for building most R packages If the administrator is unreachable: try installing: http://home.gdal.org/fwtools/FWTools-linux-2.0.6.tar.gz and then run install.packages('rgdal', configure.args=c(gdal='--with-gdal-config=~/FWTools-2.0.6/bin/gdal-config') Johan
On Tue, Sep 6, 2011 at 6:27 AM, ? ?? <robin50488 at hotmail.com> 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
9 days later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110916/8aa73094/attachment.pl>