[Rd] MacOS X 10.4 build problem

Bill Northcott w.northcott at unsw.edu.au
Mon May 2 22:05:14 CEST 2005

On 02/05/2005, at 10:50 PM, Simon Urbanek wrote:
>> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>>         unable to load shared library '/Users/billn/Public/R/ 
>> R-2.1.0/build/library/grDevices/libs/grDevices.so':
>>   dlopen(/Users/billn/Public/R/R-2.1.0/build/library/grDevices/ 
>> libs/grDevices.so, 6): Symbol not found: __cg_jpeg_resync_to_restart
>>   Referenced from: /System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/ImageIO
>>   Expected in: /usr/local/lib/libJPEG.dylib
> It's a problem in your library setup. Your /usr/local/lib/ 
> libJPEG.dylib conflicts with the system libJPEG.dylib from ImageIO  
> framework (which is in /System/Library/Frameworks/ 
> ApplicationServices.framework/Versions/A/Frameworks/ 
> ImageIO.framework/Versions/A/Resources/libJPEG.dylib). Since R  
> forces the load of the one in /usr/local/lib first (as you  
> configured it), it is loaded instead of the one in ImageIO  
> framework, but it doesn't contain the same symbols, thus the load  
> fails. You should remove /usr/local/libJPEG.dylib and use static  
> version or ImageIO instead.
Ding!  I get it.  It is a problem with the case independent file  
system.  libJPEG would be different from the gnu libjpeg, but on HFS+  
it is not.  Hence the confusion.

I will try to look at it later.  I think all I may need to do is  
remove the libjpeg.dylib symlink, which would Appleise it.


More information about the R-devel mailing list