[R-sig-Geo] can't load rgdal on mac osx [SEC=UNCLASSIFIED]
Hafi, Ahmed
Ahmed.Hafi at daff.gov.au
Tue Apr 17 09:12:22 CEST 2012
Dear Roger and Prof Ripley,
I successfully installed and loaded rgdal package for R 2.15.0 prepared
for Mac OSX Lion. I would like to thank you both for the effort and the
interest taken.
Thanks
Ahmed Hafi
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Monday, 16 April 2012 3:17 PM
To: Hafi, Ahmed
Cc: Roger.Bivand at nhh.no; r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] can't load rgdal on mac osx [SEC=UNCLASSIFIED]
On 16/04/2012 00:27, Hafi, Ahmed wrote:
> Dear Roger,
>
> Hope the two lines below still work.
>
> seRepositories(ind=1:2)
> install.package('rgdal')
>
>
> I looked at the folder 'http://www.stats.ox.uk/pub/RWin' and still
find
> Rgdal.07-8.tar.gz dated 18 January. I am wondering whether its kept
> somewhere else.
OS X binary packages are .tgz files, and the relevant ones for 2.15.0
are in
http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.15/
> I will try installing rgdal and report back to you later.
>
> Thanks
>
> ahmed
>
> -----Original Message-----
> From: Roger Bivand [mailto:Roger.Bivand at nhh.no]
> Sent: Sunday, 15 April 2012 11:51 PM
> To: Hafi, Ahmed
> Cc: Prof Brian Ripley; r-sig-geo at r-project.org
> Subject: Re: [R-sig-Geo] can't load rgdal on mac osx
[SEC=UNCLASSIFIED]
>
> CRAN Extras now has versions of rgdal and rgeos built with Lion for R
> 2.15. It is fairly likely that these will work with [Snow] Leopard,
but
> because Apple has dropped the Leopard SDK, this cannot be guaranteed,
> and
> the risk of difficulties for Leopard users will increase as GDAL and
> GEOS
> are remade under Lion.
>
> Please report back (possibly off-list) if the 2.15 CRAN Extras binary
> packages work or do not work, with details of your OSX version.
>
> Thanks again to Prof. Brian Ripley for his support!
>
> Roger
>
> On Fri, 13 Apr 2012, Roger Bivand wrote:
>
>> The problem that you report is caused by a terminal hardware failure
> of the
>> Leopard machine used to build the CRAN Extras OSX binaries, so that
> rgdal and
>> rgeos binaries for OSX have not been built for R 2.15. If OSX users
of
> the
>> CRAN Extras rgdal and rgeos binaries upgrade to 2.15 and install the
>> apparently correct 2.15 rgdal (or rgeos), it will fail to load
because
> it was
>> itself built against R 2.14 - the case reported in this posting.
>>
>> Until a new build machine is in place, please revert to R 2.14, or
> delay
>> upgrading to 2.15 if the CRAN extras binary packages are your
prefered
> method
>> of installation. More information will follow as soon as the
situation
> is
>> normalised.
>>
>> R 2.15 users who install rgdal from source linking to the Kyngchaos
> GDAL
>> frameworks will be able to use rgdal in 2.15.
>>
>> We trust that this has nothing to do with the date - the older
Leopard
> OSX
>> machine failed about two weeks ago!
>>
>> Roger
>>
>> On Fri, 13 Apr 2012, Hafi, Ahmed wrote:
>>
>>> Dear list members,
>>>
>>> I am running R on a macbook pro with mac osx lion and trying to do
> some
>>> spatial modelling with R. I have run into a problem in loading
rgdal.
> I
>>> understand that the installation of rgdal in mac is different from
> other
>>> packages and followed the instructions given in CRAN rgdal page
> updated
>>> in last January. The rgdal downloaded successfully but didn't appear
> to
>>> get installed successfully and failed to load. I have copied the
> screen
>>> print segment below. Is it because of the difference in mac osx
> version
>>> I am using? I would appreciate if someone could interpret it and
> suggest
>>> what should I do to get rgdal loaded. I am desperate to use the
>>> functions of this package.
>>>
>>>
>>>
>>> setRepositories(ind=1:2)
>>>
>>>> install.packages('rgdal')
>>>
>>> trying URL
>>>
>
'http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.15/rgda
>>> l_0.7-8.tgz'
>>>
>>> Content type 'application/x-gzip' length 13818239 bytes (13.2 Mb)
>>>
>>> opened URL
>>>
>>> ==================================================
>>>
>>> downloaded 13.2 Mb
>>>
>>>
>>>
>>>
>>>
>>> The downloaded binary packages are in
>>>
>>>
>>>
>
/var/folders/17/452p64r17tj_p4y6gmpw5h4c0000gn/T//Rtmp3v4WEZ/downloaded_
>>> packages
>>>
>>>> library(rgdal)
>>>
>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>>
>>> unable to load shared object
>>>
>
'/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/l
>>> ibs/x86_64/rgdal.so':
>>>
>>>
>
dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/r
>>> gdal/libs/x86_64/rgdal.so, 6): Library not loaded:
>>>
> /Library/Frameworks/R.framework/Versions/2.14/Resources/lib/libR.dylib
>>>
>>> Referenced from:
>>>
>
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/li
>>> bs/x86_64/rgdal.so
>>>
>>> Reason: image not found
>>>
>>> Error: package/namespace load failed for 'rgdal'
>>>
>>>
>>>
>>> **********************************************************
>>>
>>>
>>>
>>> thanks
>>>
>>>
>>>
>>> Ahmed Hafi
>>>
>>> Senior Economist | ABARES | Biosecurity and Farm Analysis
>>>
>>>
>>>
>>> Phone +61 2 6272 2081
>>>
>>> Email ahmed.hafi at daff.gov.au<mailto:sally.thorpe at abare-brs.gov.au>
>>>
>>>
>>>
>>> Australian Bureau of Agricultural and Resource Economics and
Sciences
>>>
>>> Department of Agriculture, Fisheries and Forestry
>>>
>>> 18 Marcus Clarke Street, Canberra ACT 2601 Australia
>>>
>>> GPO Box 1563 Canberra ACT 2601 Australia
>>>
>>>
>>>
>>> daff.gov.au/abares
>>>
>>>
>>>
>>> <http://twitter.com/abares>
>>>
>
<http://www.facebook.com/pages/Australian-Bureau-of-Agricultural-Resourc
>>> e-Economics-Sciences-ABARES/157609254289602>
>>>
>>>
>>>
>>>
>>>
>>> ------
>>> ------
>>> IMPORTANT - This email and any attachments have been issued by the
>>> Australian Government Department of Agriculture, Fisheries and
> Forestry
>>> (DAFF). The material transmitted is for the use of the intended
> recipient
>>> only and may contain confidential, legally privileged, copyright or
>>> personal information. You should not copy, use or disclose it
without
>
>>> authorisation from DAFF. It is your responsibility to check any
> attachments
>>> for viruses and defects before opening or forwarding them.
>>>
>>> If you are not an intended recipient, please contact the sender of
> this
>>> email at once by return email and then delete both messages.
> Unintended
>>> recipients must not copy, use, disclose, rely on or publish this
> email or
>>> attachments. DAFF is not liable for any loss or damage resulting
from
>
>>> unauthorised use or dissemination of, or any reliance on, this email
> or
>>> attachments.
>>>
>>> If you have received this e-mail as part of a valid mailing list and
> no
>>> longer want to receive a message such as this one, advise the sender
> by
>>> return e-mail accordingly.
>>>
>>> This notice should not be deleted or altered.
>>>
>>> ------
>>>
>>>
>>> ------
>>>
>>>
>>
>>
>
--
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
------
------
IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture, Fisheries and Forestry (DAFF). The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from DAFF. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.
If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. DAFF is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.
If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly.
This notice should not be deleted or altered.
------
------
More information about the R-sig-Geo
mailing list