[R] rgdal package load problem

Pascal Oettli kridox at ymail.com
Fri Jun 22 02:57:40 CEST 2012


Hello,

Let's assume that you already installed both "proj4" and "gdal" on your 
computer.

Then, try the following command in R prompt:

 > install.packages("rgdal", dependencies=TRUE, 
configure.args=c("--with-proj-lib=/opt/local/lib", 
"--with-gdal-lib=/opt/local/lib"))

Best Regards,
Pascal


Le 22/06/2012 03:11, BHorn a écrit :
> I am having trouble getting the rgal package to work on Mac OS X.  I suspect
> it has something to do with the link between the rgal package and the
> associated programs  GDAL and PROJ4.  Here is the message I get when I
> attempt to load rgal
>
>> library("rgdal")
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>    unable to load shared object
> '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/libs/x86_64/rgdal.so':
>
> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/libs/x86_64/rgdal.so,
> 6): Library not loaded:
> /Library/Frameworks/UnixImageIO.framework/Versions/D/UnixImageIO
>    Referenced from: /Library/Frameworks/SQLite3.framework/Versions/3/SQLite3
>    Reason: image not found
> Error: package/namespace load failed for ‘rgdal’
>
> Any help is appreciated
>
> --
> View this message in context: http://r.789695.n4.nabble.com/rgdal-package-load-problem-tp4634134.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list