[R-SIG-Mac] Problem with libR.dylib in 2.8.0
Chris Lokan
c.lokan at adfa.edu.au
Wed Oct 29 02:47:28 CET 2008
I found a work-around.
I re-installed everything from scratch, with MacOS X binaries downloaded
today from CRAN for R-2.8.0.dmg and for all the libraries I need.
Same problem: some of the libraries (chron, Cairo, Design, Hmisc) expect to
find libR.dylib in a directory called
/Library/Frameworks/R.framework/Versions/2.7/Resources/lib/
I have not done any hard-coding of anything myself, so I assume the
hard-coded path must be in the libraries themselves somehow.
The work-around: I created that directory structure by hand, and linked
/Library/Frameworks/R.framework/Libraries/libR.dylib into it. Now things
seem to be working.
Chris
On 29/10/08 9:44 AM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote:
>
> On Oct 28, 2008, at 18:11 , Chris Lokan wrote:
>
>> After installing 2.8.0, I am unable to load some packages. I have
>> installed
>> them successfully with R CMD INSTALL, but can't load them into R.
>>
>> For example:
>>
>>> library("Cairo")
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>> unable to load shared library
>> '/Library/Frameworks/R.framework/Versions/2.8/Resources/library/
>> Cairo/libs/i
>> 386/Cairo.so':
>>
>> dlopen(/Library/Frameworks/R.framework/Versions/2.8/Resources/
>> library/Cairo/
>> libs/i386/Cairo.so, 6): Library not loaded:
>> /Library/Frameworks/R.framework/Versions/2.7/Resources/lib/libR.dylib
>> Referenced from:
>> /Library/Frameworks/R.framework/Versions/2.8/Resources/library/Cairo/
>> libs/i3
>> 86/Cairo.so
>> Reason: image not found
>> Error : .onLoad failed in 'loadNamespace' for 'Cairo'
>> Error: package/namespace load failed for 'Cairo'
>>
>> Where can I find libR.dylib? Or is there another way around this?
>>
>
> You are likely trying to load a R 2.7.x package in R 2.8.0. Look at
> the paths above. Make sure you have removed packages from previous R
> versions and/or you are not using hard-coded paths to user libraries.
> Also I would strongly recommend using CRAN builds of packages
> especially with packages with library dependencies like Cairo.
>
> Cheers,
> Simon
>
>
>> I am running MacOS X 10.4.11. I checked the md5 hash for R-2.8.0.dmg
>> after
>> downloading it, and the value was correct.
>>
>> Chris
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
>
-------------------------------------------------------------
Dr. Chris Lokan
School of Information Technology and Electrical Engineering
UNSW at ADFA, Australian Defence Force Academy
Canberra ACT 2600, Australia
Phone: +61 2 6268 8060
Fax: +61 2 6268 8581
Email: c.lokan at adfa.edu.au
This message is intended for the addressee named and may...{{dropped:10}}
More information about the R-SIG-Mac
mailing list