[R-sig-Geo] rgdal package for mac
MacQueen, Don
macqueen1 at llnl.gov
Fri May 18 19:16:15 CEST 2012
I have rgdal installed on two 10.6.8 machines -- one regrettably still
using R 2.14.1 and the other R 2.15.0.
Over time I have used both the CRAN Extras rgdal and the kyngchaos rgdal.
Currently I have the CRAN Extras version (0.7-8, 2012-01-18) installed,
but if there is now a version mismatch as Roger suggested might be the
case, I would try the kyngchaos version of rgdal.
My basic process for GIS support on my Macs is to
1) download and install the necessary frameworks from kyngchaos
2) install rgdal
#### GIS software for Mac (Snow Leopard and Lion)
http://hub.qgis.org/projects/quantum-gis/wiki/Download#3-MacOS-X
http://www.kyngchaos.com/software/qgis
http://www.kyngchaos.com/software/frameworks
The following describes the 2.15.0 machine.
#### listing of my GIS support directory, from kyngchaos qgis and
frameworks pages
GIS-support-2012-04[8]% ls -1 *.dmg *.zip
FreeType_Framework-2.4.9-1.dmg
GDAL_Complete-1.9.dmg
GRASS-6.4.2-3-Snow.dmg
GSL_Framework-1.15-2.dmg
Qgis-1.7.4-4.dmg
cairo_Framework-1.10.2-3a-snow.dmg
rgdal-0.7.8-1.zip (this is the kyngchaos version of rgdal)
#### Then in R:
## loading rgdal
> require(rgdal)
Loading required package: rgdal
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29
Path to GDAL shared files:
/Library/Frameworks/GDAL.framework/Versions/1.9/Resources/gdal
Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgdal_0.7-8 sp_0.9-98 rmacq_1.1-6
loaded via a namespace (and not attached):
[1] grid_2.15.0 lattice_0.20-6 tools_2.15.0
####
Note that my sp is not (quite) up to date, as Roger mentioned sp 0.9.99
somewhere in this long email chain.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 5/18/12 9:17 AM, "de Larminat, Pierre" <pl at mpifg.de> wrote:
>Le 18 mai 2012 à 18:11, Roger Bivand a écrit :
>
>> On Fri, 18 May 2012, de Larminat, Pierre wrote:
>>
>>> Le 18 mai 2012 à 17:52, Roger Bivand a écrit :
>>>
>>>> On Fri, 18 May 2012, de Larminat, Pierre wrote:
>>>>
>>>>>
>>>>>
>>>>> Le 18 mai 2012 à 17:14, Roger Bivand a écrit :
>>>>>
>>>>>> On Fri, 18 May 2012, de Larminat, Pierre wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I have the same problem than:
>>>>>>> [R-sig-Geo] rgdal package for mac
>>>>>>> Gabriele Cozzi gab.cozzi at gmail.com<http://gmail.com>
>>>>>>> Thu May 17 10:33:21 CEST 2012
>>>>>>>
>>>>>>> I have already done:
>>>>>>> setRepositories(ind=1:2)
>>>>>>> install.packages("rgdal")
>>>>>>> as said on the CRAN page for rgdal.
>>>>>>>
>>>>>>> I have restarted the computer and R.
>>>>>>> When I entered the lines again, I received the same message that I
>>>>>>>had received before:
>>>>>>>
>>>>>>>> setRepositories(ind=1:2)
>>>>>>>> install.packages("rgdal")
>>>>>>> --- SVP s?lectionner un miroir CRAN pour cette session ---
>>>>>>> essai de l'URL
>>>>>>>'http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.15/
>>>>>>>rgdal_0.7-8.tgz'
>>>>>>> Content type 'application/x-gzip' length 13810017 bytes (13.2 Mb)
>>>>>>> URL ouverte
>>>>>>> ==================================================
>>>>>>> downloaded 13.2 Mb
>>>>>>>
>>>>>>>
>>>>>>> Les packages binaires t?l?charg?s sont dans
>>>>>>>
>>>>>>>/var/folders/zT/zTnmGA9q2RaOuE+F76E3E++++TI/-Tmp-//RtmpKnHXly/downlo
>>>>>>>aded_packages
>>>>>>>> library(rgdal)
>>>>>>> Le chargement a n?cessit? le package : sp
>>>>>>
>>>>>> This does seem to imply that sp is necessary, doesn't it? Have you
>>>>>> installed sp? Messages are given to be read, rather than ignored.
>>>>>>
>>>>>> Roger
>>>>>>
>>>>> Yes I had installed sp. The message merely states that I had not
>>>>>charged the sp library and that R had to do it by itself. When I do
>>>>>run *library(sp)* in time, I still get:
>>>>
>>>> OK. The next error message refers to your system having
>>>>"libcurl.4.dylib
>>>> provides version 6.0.0", but that the rgdal OSX binary requires >=
>>>>7.0.0:
>>>>
>>>>>
>>>>>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>>>>>> impossible de charger l'objet partag?
>>>>>>>'/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgd
>>>>>>>al/libs/i386/rgdal.so':
>>>>>>>
>>>>>>>dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/libra
>>>>>>>ry/rgdal/libs/i386/rgdal.so, 6): Library not loaded:
>>>>>>>/usr/lib/libcurl.4.dylib
>>>>>>> Referenced from:
>>>>>>>/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgda
>>>>>>>l/libs/i386/rgdal.so
>>>>>>> Reason: Incompatible library version: rgdal.so requires version
>>>>>>>7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
>>>>
>>>> ^^^^ here. Are you running an older OSX version?
>>>>
>>>> Roger
>>>>
>>> I am running R 2.15 on MacOS 10.6.8 and I do not know what
>>>libcurl.4.dylib is.
>>
>> Please ask on R-sig-mac, or get local help; users may not know what
>>system
>> resources are, but do suffer the consequences. The cause is probably
>>that
>> the rgdal CRAN Extras OSX binary was built on 10.7, and you are running
>> 10.6 - the background for building on a newer system was given in an
>> earlier thread.
>>
>> Roger
>>
>
>OK, thank you for the advice and for the time that you have taken to help
>me.
>
>Pierre.
>
>>>>
>>>>>>> Erreur : le chargement du package / espace de noms a ?chou? pour
>>>>>>>?rgdal?
>>>>>>>>
>>>>>>>
>>>>>>> Does anyone know how to solve this problem?
>>>>>>> Thank you very much,
>>>>>>> Pierre de Larminat.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Le 18 mai 2012 ? 15:45, Roger Bivand a ?crit :
>>>>>>>
>>>>>>> On Fri, 18 May 2012, de Larminat, Pierre wrote:
>>>>>>>
>>>>>>> Dear Prof. Bivand,
>>>>>>>
>>>>>>> As I have trouble installing rgdal on my Macbook, I searched on
>>>>>>>some
>>>>>>> blog-posts by R-bloggers, and I tried to look for help on
>>>>>>>r-sig-geo. It
>>>>>>> seems that my message doesn't come through. Can you help me
>>>>>>>please? In
>>>>>>> any case, thank you for your efforts in developing rgdal. I have
>>>>>>>seen
>>>>>>> what others do with it. It is fascinating. Best regards, Pierre de
>>>>>>> Larminat.
>>>>>>>
>>>>>>> You are subscribed as larminat at mpifg.de<mailto:larminat at mpifg.de>,
>>>>>>>and must post from that address.
>>>>>>>
>>>>>>> Never search blogs, they are almost always misleading, and nobody
>>>>>>>takes
>>>>>>> responsibility for keeping the advice given up to date. Did you
>>>>>>>read the
>>>>>>> CRAN page for rgdal - it does explain how to install rgdal on OSX.
>>>>>>>You
>>>>>>> might also have searched the list archives (this question was
>>>>>>>answered
>>>>>>> yesterday), or googled "list:r-sig-geo rgdal Mac".
>>>>>>>
>>>>>>> Roger Bivand
>>>>>>>
>>>>>>> list admin.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> - - -
>>>>>>> Pierre de Larminat
>>>>>>> Visiting doctoral fellow
>>>>>>> Max Planck Institute for the Study of Societies
>>>>>>> Paulstrasse 3, D-50676 K?ln, Germany
>>>>>>> office: +49.221.2767.222
>>>>>>> mobile: +49.152.521.704.83
>>>>>>> e-mail: larminat at mpifg.de<mailto:larminat at mpifg.de>
>>>>>>>
>>>>>>> D?but du message r?exp?di? :
>>>>>>>
>>>>>>> De :
>>>>>>>"r-sig-geo-owner at r-project.org<mailto:r-sig-geo-owner at r-project.org>
>>>>>>>"
>>>>>>><r-sig-geo-owner at r-project.org<mailto:r-sig-geo-owner at r-project.org>
>>>>>>>>
>>>>>>> Date : 18 mai 2012 15:28:54 HAEC
>>>>>>> ? : "de Larminat, Pierre" <pl at mpifg.de<mailto:pl at mpifg.de>>
>>>>>>> Objet : Installing rgdal on mac
>>>>>>>
>>>>>>> You are not allowed to post to this mailing list, and your message
>>>>>>>has
>>>>>>> been automatically rejected. If you think that your messages are
>>>>>>> being rejected in error, contact the mailing list owner at
>>>>>>>
>>>>>>>r-sig-geo-owner at r-project.org<mailto:r-sig-geo-owner at r-project.org>.
>>>>>>>
>>>>>>>
>>>>>>> De : "de Larminat, Pierre" <pl at mpifg.de<mailto:pl at mpifg.de>>
>>>>>>> Date : 18 mai 2012 15:28:28 HAEC
>>>>>>> ? : "r-sig-geo at r-project.org<mailto:r-sig-geo at r-project.org>"
>>>>>>><r-sig-geo at r-project.org<mailto:r-sig-geo at r-project.org>>
>>>>>>> Objet : Installing rgdal on mac
>>>>>>>
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Working on MacOS X, I have trouble installing rgdal.
>>>>>>>
>>>>>>> I am sorry to post about this problem, since others have probably
>>>>>>>asked the question earlier on this list, but there seem to be no
>>>>>>>search tool to look for the previous posts on the list.
>>>>>>>
>>>>>>> Below is the R-output to my previous installation trials:
>>>>>>>
>>>>>>> install.packages("rgdal")
>>>>>>> Message d'avis :
>>>>>>> package ?rgdal? is not available (for R version 2.15.0)
>>>>>>> setRepositories(ind=1:2)
>>>>>>> install.packages("rgdal")
>>>>>>> essai de l'URL
>>>>>>>'http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.15/
>>>>>>>rgdal_0.7-8.tgz'
>>>>>>> Content type 'application/x-gzip' length 13810017 bytes (13.2 Mb)
>>>>>>> URL ouverte
>>>>>>> ==================================================
>>>>>>> downloaded 13.2 Mb
>>>>>>>
>>>>>>>
>>>>>>> Les packages binaires t?l?charg?s sont dans
>>>>>>>
>>>>>>>/var/folders/zT/zTnmGA9q2RaOuE+F76E3E++++TI/-Tmp-//Rtmpu8X57c/downlo
>>>>>>>aded_packages
>>>>>>> library(rgdal)
>>>>>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>>>>>> impossible de charger l'objet partag?
>>>>>>>'/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgd
>>>>>>>al/libs/i386/rgdal.so':
>>>>>>>
>>>>>>>dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/libra
>>>>>>>ry/rgdal/libs/i386/rgdal.so, 6): Library not loaded:
>>>>>>>/usr/lib/libcurl.4.dylib
>>>>>>> Referenced from:
>>>>>>>/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgda
>>>>>>>l/libs/i386/rgdal.so
>>>>>>> Reason: Incompatible library version: rgdal.so requires version
>>>>>>>7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
>>>>>>> Erreur : le chargement du package / espace de noms a ?chou? pour
>>>>>>>?rgdal?
>>>>>>>
>>>>>>>
>>>>>>> Meanwhile, I have installed PROJ 4.8 and GDAL 1.9 Complete from
>>>>>>>http://www.kyngchaos.com/software:frameworks
>>>>>>>
>>>>>>> but it doesn't help. When I try again with
>>>>>>> setRepositories(ind=1:2)
>>>>>>> install.packages("rgdal")
>>>>>>>
>>>>>>> I still get the error message pasted above.
>>>>>>>
>>>>>>> Can you help me?
>>>>>>> Thank you very much,
>>>>>>>
>>>>>>> Pierre de Larminat.
>>>>>>>
>>>>>>>
>>>>>>> [[alternative HTML version deleted]]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Roger Bivand
>>>>>>> Department of Economics, NHH Norwegian School of Economics,
>>>>>>> Helleveien 30, N-5045 Bergen, Norway.
>>>>>>> voice: +47 55 95 93 55; fax +47 55 95 95 43
>>>>>>> e-mail: Roger.Bivand at nhh.no<mailto:Roger.Bivand at nhh.no>
>>>>>>>
>>>>>>>
>>>>>>> [[alternative HTML version deleted]]
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Roger Bivand
>>>>>> Department of Economics, NHH Norwegian School of Economics,
>>>>>> Helleveien 30, N-5045 Bergen, Norway.
>>>>>> voice: +47 55 95 93 55; fax +47 55 95 95 43
>>>>>> e-mail: Roger.Bivand at nhh.no
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> Roger Bivand
>>>> Department of Economics, NHH Norwegian School of Economics,
>>>> Helleveien 30, N-5045 Bergen, Norway.
>>>> voice: +47 55 95 93 55; fax +47 55 95 95 43
>>>> e-mail: Roger.Bivand at nhh.no
>>>
>>>
>>
>> --
>> Roger Bivand
>> Department of Economics, NHH Norwegian School of Economics,
>> Helleveien 30, N-5045 Bergen, Norway.
>> voice: +47 55 95 93 55; fax +47 55 95 95 43
>> e-mail: Roger.Bivand at nhh.no
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list