Sorry to exasperate you! As you pointed out, the version numbers in the error messages showed that something was wrong about the binaries. My problem was that I assumed that clicking through from the main CRAN packages page would lead me to the correct binaries.
Rather than http://cran.r-project.org/bin/macosx/universal/contrib/2.8/ Clicking through from http://cran.r-project.org/web/packages/ leads to files contained in http://cran.r-project.org/bin/macosx/universal/contrib/r-release/ I've got the correct ones now, and fixed up the corrupted structure I have created for myself. All is well. Many thanks for your help. Chris > > On 29/10/08 1:57 PM, "Simon Urbanek" <[EMAIL PROTECTED]> wrote: > >> Chris, >> >> On Oct 28, 2008, at 9:47 PM, Chris Lokan wrote: >> >>> 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. >>> >> >> Yes, you have the wrong binaries!! You have binaries for R 2.7 but you >> need binaries for R 2.8. >> I can only repeat that over and over again. Get binaries for R 2.8.0! >> They are in >> >> http://cran.r-project.org/bin/macosx/universal/contrib/2.8/ >> >> (replace the host with your mirror if you wish, but make sure there is >> 2.8 in the URL!) >> The most reliable way is to use install.packages to fetch them, but if >> you have to fetch them manually, make sure you get the right ones! >> >> >>> 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. >>> >> >> Do NOT do that! R 2.7 and R 2.8 are NOT binary compatible. Most >> symbols will be fine, but some won't. You simply have the wrong >> binaries - again 2.7 binaries are NOT meant to be used with R 2.8.0. >> >> Cheers, >> Simon >> >> >>> >>> On 29/10/08 9:44 AM, "Simon Urbanek" <[EMAIL PROTECTED]> >>> 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 >>>>> [email protected] >>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >>>>> >>>>> >>>> >>> >>> ------------------------------------------------------------- >>> Dr. Chris Lokan >>> School of Information Technology and Electrical Engineering >>> [EMAIL PROTECTED], Australian Defence Force Academy >>> Canberra ACT 2600, Australia >>> Phone: +61 2 6268 8060 >>> Fax: +61 2 6268 8581 >>> Email: [EMAIL PROTECTED] >>> >>> This message is intended for the addressee named and may contain >>> confidential information. If you are not the intended recipient, >>> Please delete it and notify the sender. Views expressed in this >>> message are those of the individual sender and are not necessarily >>> the views of the University College of the University of New South >>> Wales. >>> >>> CRICOS Provider Number: 00100G >>> ------------------------------------------------------------- >>> >>> >> > > ------------------------------------------------------------- > Dr. Chris Lokan > School of Information Technology and Electrical Engineering > [EMAIL PROTECTED], Australian Defence Force Academy > Canberra ACT 2600, Australia > Phone: +61 2 6268 8060 > Fax: +61 2 6268 8581 > Email: [EMAIL PROTECTED] > > This message is intended for the addressee named and m...{{dropped:29}} _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
