[R-SIG-Mac] Unable to use jpeg() in R.2.12.1

Simon Urbanek simon.urbanek at r-project.org
Mon Dec 20 22:54:49 CET 2010


Mandy,

this should be the relevant info that you should see:

hagal:~$ ls -l /usr/X11/lib/libfontconfig.*
-rwxr-xr-x  1 root  wheel  1078864 Dec  5  2007 /usr/X11/lib/libfontconfig.1.1.0.dylib
-rwxr-xr-x  1 root  wheel  1056752 Jun 17  2009 /usr/X11/lib/libfontconfig.1.3.0.dylib
lrwxr-xr-x  1 root  wheel       25 Apr 13  2010 /usr/X11/lib/libfontconfig.1.dylib -> libfontconfig.1.3.0.dylib
lrwxr-xr-x  1 root  wheel       25 Apr 13  2010 /usr/X11/lib/libfontconfig.dylib -> libfontconfig.1.3.0.dylib

hagal:~$ otool -L /usr/X11/lib/libfontconfig.*|grep -A1 ^/             
/usr/X11/lib/libfontconfig.1.1.0.dylib:
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 3.0.0, current version 3.0.0)
--
/usr/X11/lib/libfontconfig.1.3.0.dylib:
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
--
/usr/X11/lib/libfontconfig.1.dylib:
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
--
/usr/X11/lib/libfontconfig.dylib:
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)


And the correct version should have been a part of the 10.5.8 system update:

hagal:~$ pkgutil --file-info /usr/X11/lib/libfontconfig.dylib 
volume: /
path: usr/X11/lib/libfontconfig.dylib

pkgid: com.apple.pkg.X11User
pkg-version: 10.5.3.1.1.1191932192
install-time: 1271180430
uid: 0
gid: 0
mode: 120755

pkgid: com.apple.pkg.update.os.10.5.8.combo
pkg-version: 1.0.1.1191932192
install-time: 1271181602
uid: 0
gid: 0
mode: 120755


so if in doubt, try re-installing the 10.5.8 update:

http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update

Cheers,
Simon



On Dec 20, 2010, at 4:43 PM, Li, Man wrote:

> Hi Simon,
> 
> Thanks for your quick response.
> 
> I checked all upgrades from Apple. Nothing comes up. Here is my X11 version info.
> 
> TransformProcessType: Success
> X11.app starting:
> X.org Release 7.2
> X.Org Xquartz X Server 1.3.0-apple5
> Build Date: 20080305
> 
> Mandy
> 
> On 12/20/10 4:39 PM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote:
> 
> 
> 
> On Dec 20, 2010, at 3:20 PM, Li, Man wrote:
> 
> > Dear list,
> >
> > I just installed R-2.12.1 this afternoon on my mac (OS X 10.5.8). When I was trying to open jpeg() in R, I got this error message below.
> >
> >> jpeg()
> > Error in jpeg() : X11 module cannot be loaded
> > In addition: Warning message:
> > In jpeg() :
> >  unable to load shared object '/Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so':
> >  dlopen(/Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so, 6): Library not loaded: /usr/X11/lib/libfontconfig.1.dylib
> >  Referenced from: /Library/Frameworks/R.framework/Resources/modules/x86_64/R_X11.so
> >  Reason: Incompatible library version: R_X11.so requires version 5.0.0 or later, but libfontconfig.1.dylib provides version 3.0.0
> >
> 
> Apparently your X11 is out of date - try installing all security upgrades from Apple (see Software Update).
> 
> That said, on Mac you are usually better off using Quartz - e.g. quartz(.., type="jpeg") instead of jpeg(), png() etc..
> 
> Cheers,
> Simon
> 
> 
> 
> > There is no problem with png() and pdf().
> >
> > Please advise!
> >
> > Thanks a lot.
> >
> > ----------------------------
> > Man Li
> > Research Analyst
> > Dept of Epidemiology
> > Johns Hopkins Bloomberg School of Public Health
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-SIG-Mac mailing list
> > R-SIG-Mac at r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> >
> >
> 
> 



More information about the R-SIG-Mac mailing list