Skip to content

rgdal installation problems

8 messages · António M. Rodrigues, John Maindonald, Ben Madin +2 more

#
On Mon, 2 May 2011, Ant?nio M. Rodrigues wrote:

            
Where from?  Not CRAN.

This is better discussed on R-sig-geo, but I suspect that either you 
have a local GDAL installation and local settings (in which case you 
probably need to build rgdal from source to match ) or you got 
rdgal_0.6-33.tgz from someone who has.  (Mine on CRANxtras is entirely 
static and I have no such directory on my system.)

  
    
14 days later
#
I can't sucessfully install rgdal from kyngchaos in R13(64), to the best of my knowledge I get latest gdal1.8, cairo, freetype and rgdal 0.6.33-2 for snow leopard from William's. I updated sp as well. But it keeps saying:
Error in get(Info[i, 1], envir = env) : 
  internal error -3 in R_decompress1
Error: package/namespace load failed for 'rgdal'
Any ideas?
sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] sp_0.9-81

loaded via a namespace (and not attached):
[1] grid_2.13.0     lattice_0.19-23 tools_2.13.0
On May 2, 2011, at 1:03 PM, Ant?nio M. Rodrigues wrote:

            
#
Do you have the following in a .bash_profile, or some equivalent?:

export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
export PATH=/Library/Frameworks/PROJ.framework/Programs:$PATH
export PATH=/Library/Frameworks/SQLite3.framework/Programs:$PATH
export PATH=/Library/Frameworks/UnixImageIO.framework/Programs:$PATH

(at least the first and second will be needed)

Alternatively, see:
http://www.kyngchaos.com/macosx/notes/shell

I suspect that rgdal will not install successfully unless an R session
is able to "see" GDAL and probably also PROJ.4

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm
On 17/05/2011, at 1:45 AM, Agustin Diez Castillo wrote:

            
#
Agustin,

I was having some problems a few days ago using these binaries, and it was due to one of the Frameworks in the GDAL complete being out of date... you could try downloading all the individual ones to see if that helps.

cheers

Ben
On 17/05/2011, at 8:08 AM, John Maindonald wrote:

            
#
On Tue, 17 May 2011, John Maindonald wrote:

            
Why do you suspect so?  rgdal does not call the GDAL nor PROJ4 nor 
SQLite3 programs.  If you dynamically link, you may need their library 
directories on the dylib search path (but you can statically link).

I think the rest of us will need to wait a few decades to see R13 (and 
the R posting guide asks you to be accurate about versions).  For R 
2.13.0 there is a statically linked binary of rgdal on CRAN extras, 
and you can ask about it on the appropriate list, r-sig-geo.
Corrupt package installation.

  
    
#
R CMD INSTALL rgdal_0.6-33.tgz
did the trick
On May 17, 2011, at 7:25 AM, Prof Brian Ripley wrote:

            
Nope, 
R CMD INSTALL rgdal_0.6-33.tgz
did the trick