Skip to content

rgdal from kyngchaos: Error in get(Info[i, 1], envir = env) :

3 messages · Agustin Lobo, Agustin Diez Castillo

#
After having installed GDAL from
http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.7.dmg
and downloading
http://www.kyngchaos.com/files/software/frameworks/rgdal-0.6.29-1.zip
I install rgdal and get:
inferring 'repos = NULL' from the file name
Loading required package: rgdal
Error in get(Info[i, 1], envir = env) :
  no se puede asignar un bloque de memoria de tama?o 2.2 Gb

(== cannot assign a memory block of size 2.2 Gb)

Is this a particular problem in this computer? Any fix?

(BTW, cannot find how to get these messages in English)

Agus
#
On Dec 24, 2010, at 10:21 AM, Agustin Lobo wrote:

            
defaults write org.R-project.R force.LANG en_US.UTF-8
3 days later
#
Sorry, I was mixing installations. The problem I report here is the
one with the
rgdal from CRAN repositories. This is the correct story:

After having installed GDAL from
http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.7.dmg
Removing package(s) from ?/Library/Frameworks/R.framework/Resources/library?
(as ?lib? is unspecified)
Error en .find.package(pkgs, lib) : there is no package called 'rgdal'
probando la URL
'http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.12/rgdal_0.6-31.tgz'
Content type 'application/x-gzip' length 10203689 bytes (9.7 Mb)
URL abierta
==================================================
downloaded 9.7 Mb


The downloaded packages are in
	/var/folders/iR/iRxOvaG9F10viNoa7WceNU+++TI/-Tmp-//Rtmpx5JXhi/downloaded_packages
Loading required package: rgdal
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so':
  dlopen(/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so,
6): Library not loaded: libR.dylib
  Referenced from:
/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so
  Reason: image not found

I do have rgdal.so in that directory:
imac-de-agustin-lobo:i386 agustinlobo$ pwd
/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386
imac-de-agustin-lobo:i386 agustinlobo$ ls -l
total 15088
-rwxr-xr-x  1 agustinlobo  admin  7722168  4 dic 15:57 rgdal.so


I can get rgdal running using the version from kyngchaos, but not with this one.

Thanks,

Agus


2010/12/24 Agustin Lobo <alobolistas at gmail.com>: