[R-SIG-Mac] rgdal installation problems
Agustin Diez Castillo
adiez at uv.es
Tue May 17 10:12:09 CEST 2011
R CMD INSTALL rgdal_0.6-33.tgz
did the trick
On May 17, 2011, at 7:25 AM, Prof Brian Ripley wrote:
> On Tue, 17 May 2011, John Maindonald 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
>
> 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.
>
>>
>> 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:
>>
>>> 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?
>
> Corrupt package installation.
Nope,
R CMD INSTALL rgdal_0.6-33.tgz
did the trick
>
>>> 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:
>>>
>>>> No dia 2 de Maio de 2011 11:32, Prof Brian Ripley
>>>> <ripley at stats.ox.ac.uk>escreveu:
>>>>
>>>>> On Mon, 2 May 2011, António M. Rodrigues wrote:
>>>>>
>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> I'm trying to instal library rgdal in my macbook (os X 10.6.7).
>>>>>>
>>>>>>
>>>>>> I have installed the latest R package (R-2.13.0.pkg).
>>>>>>
>>>>>>
>>>>>> I have gdal 1.8 install. Also, I have loaded library sp which rgdal needs.
>>>>>>
>>>>>>
>>>>>> I downloaded rdgal_0.6-33.tgz and using R Package installer, I located and
>>>>>>
>>>>>
>>>>> 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.)
>>>>>
>>>>>
>>>> You were right. I downloaded the file from another source. I just tried the
>>>> one from CRAN and it works.
>>>>
>>>> Thank you.
>>>>
>>>>
>>>>
>>>>
>>>>> installed the Local Binary Package.
>>>>>>
>>>>>>
>>>>>> When trying to load rgdal ( >library(rgdal)in the R prompt) I get the
>>>>>> error:
>>>>>>
>>>>>>
>>>>>> -----
>>>>>>
>>>>>> Error : .onLoad failed in loadNamespace() for 'rgdal', details:
>>>>>>
>>>>>> call: fun(...)
>>>>>>
>>>>>> error:
>>>>>>
>>>>>> GDAL Error 1: dlopen(/Library/Application
>>>>>> Support/GDAL/1.8/PlugIns/gdal_GRASS.dylib, 1): Library not loaded:
>>>>>> /Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gis.dylib
>>>>>>
>>>>>> Referenced from: /Library/Application
>>>>>> Support/GDAL/1.8/PlugIns/gdal_GRASS.dylib
>>>>>>
>>>>>> Reason: image not found
>>>>>>
>>>>>>
>>>>>> Error: package/namespace load failed for 'rgdal'
>>>>>>
>>>>>> -----
>>>>>>
>>>>>>
>>>>>> Any help will be much appreciated.
>>>>>>
>>>>>> thanks,
>>>>>>
>>>>>> Ant?nio
>>>>>>
>>>>>> [[alternative HTML version deleted]]
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Brian D. Ripley, ripley at stats.ox.ac.uk
>>>>> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
>>>>> University of Oxford, Tel: +44 1865 272861 (self)
>>>>> 1 South Parks Road, +44 1865 272866 (PA)
>>>>> Oxford OX1 3TG, UK Fax: +44 1865 272595
>>>>
>>>> [[alternative HTML version deleted]]
>>>>
>>>> _______________________________________________
>>>> R-SIG-Mac mailing list
>>>> R-SIG-Mac at r-project.org
>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list