Skip to content

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:

            
#
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.
The gdal-config script distributed with GDAL could not be found.
You may need to get help from admins to do this on a shared machine.
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 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:
#
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:
9 days later