[R-SIG-Mac] Link needed to use a binary package for R-2.3.0

Jasjeet Singh Sekhon sekhon at berkeley.edu
Tue May 30 00:32:10 CEST 2006


A user reported to me that the latest binary build of Matching (2.1-1,
built May 29) for R-2.3.0 does not load on his Intel Mac.  And after
some debugging, I ended up rediscovering a version of the issue which
Douglas Bates posted regarding the beta test build of R-2.3.1.

The problem is that the Intel OS X Matching library posted on CRAN
assumes that the libgcc_s.1.0.dylib library is located in
/usr/local/gcc4.0/i686-apple-darwin8/lib/ which is not where it is
installed by the default gcc package.  This problem does not occur
when I build Matching on my Intel Mac.

The following fixes the problem (the same fix as Doug pointed out):

cd /usr/local/gcc4.0
sudo mkdir i686-apple-darwin8
cd i686-apple-darwin8
sudo ln -s ../lib 

Otherwise, one gets the following error:

> library(Matching) 
Loading required package: MASS 
Loading required package: rgenoud 
Error in dyn.load(x, as.logical(local), as.logical(now)) :  
        unable to load shared library
  dlopen(/Library/Frameworks/R.framework/Resources/library/Matching/libs/i386/Matching.so, 6): Library not l\
oaded: /usr/local/gcc4.0/i686-apple-darwin8/lib/libgcc_s.1.0.dylib 
  Referenced from:

  Reason: image not found 
Error: package/namespace load failed for 'Matching' 


Jasjeet S. Sekhon                     
Associate Professor             
Travers Department of Political Science
Survey Research Center          
UC Berkeley                     

V: 510-642-9974  F: 617-507-5524

More information about the R-SIG-Mac mailing list