[R-SIG-Mac] X11 and Yosemite
Jorge I Velez
jorgeivanvelez at gmail.com
Tue Dec 2 23:43:59 CET 2014
Thank you very much, Simon. Installing R 3.1.2 solved it.
Best,
Jorge.-
On Wed, Dec 3, 2014 at 9:32 AM, Simon Urbanek <simon.urbanek at r-project.org>
wrote:
> First, please make sure you upgrade at least to R 3.1.2 since pervious
> version are not fully Yosemite-compatible.
>
> Second, the hack you're mentioning is not necessary if you installed the
> correct R version, so make sure you have downloaded the Mavericks/Yosemite
> build.
>
> Third, please check that you don't have 3rd-party libraries installed that
> would conflict with R or XQuartz. R itself doesn't link to
> libcairo.2.dylib, so that missing dependency likely comes from some 3rd
> party library that gets loaded instead of the correct ones. If in doubt,
> rename /usr/local to something else to verify if erroneous libraries there
> are breaking your system.
>
> Cheers,
> Simon
>
>
> > On Dec 2, 2014, at 5:15 PM, Jorge I Velez <jorgeivanvelez at gmail.com>
> wrote:
> >
> > Dear all,
> >
> > I recently updated my OS to Yosemite (v 10.10.1)
> >
> > I installed XQuartz from http://xquartz.macosforge.org/landing/ and
> > followed the suggestion at
> >
> http://stackoverflow.com/questions/26489928/cant-load-x11-in-r-after-os-x-yosemite-upgrade
> > However, when I tried
> >
> > R> plot(rnorm(10))
> >
> > the following error shows up:
> >
> > Error in (function (display = "", width, height, pointsize, gamma, bg, :
> > X11 module cannot be loaded
> > In addition: Warning message:
> > In (function (display = "", width, height, pointsize, gamma, bg, :
> > unable to load shared object
> > '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
> > dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6):
> > Library not loaded: /usr/local/lib/libcairo.2.dylib
> > Referenced from:
> > /Library/Frameworks/R.framework/Resources/modules//R_X11.so
> > Reason: image not found
> >
> > When I looked at /Library/Frameworks/R.framework/Resources/modules/ I
> could
> > actually see the R_X11.so file in there. The X11.app is located at
> > /Applications/Utilities and runs with no problems when initialised.
> >
> > Could somebody please point me in the right direction to solve this?
> > Below is my sessionInfo() and output from capabilities().
> >
> > Thank you very much for your time.
> >
> > Best regards,
> > Jorge Velez
> >
> >
> > R> sessionInfo()
> > R version 3.1.1 (2014-07-10)
> > Platform: x86_64-apple-darwin13.4.0 (64-bit)
> >
> > locale:
> > [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
> >
> > attached base packages:
> > [1] graphics grDevices utils datasets parallel compiler stats
> > [8] methods base
> >
> > other attached packages:
> > [1] lme4_1.1-7 Rcpp_0.11.3 Matrix_1.1-4 data.table_1.9.4
> > [5] ggplot2_1.0.0
> >
> > loaded via a namespace (and not attached):
> > [1] chron_2.3-45 colorspace_1.2-4 digest_0.6.4 grid_3.1.1
> > [5] gtable_0.1.2 lattice_0.20-29 MASS_7.3-35 minqa_1.2.4
> > [9] munsell_0.4.2 nlme_3.1-117 nloptr_1.0.4 plyr_1.8.1
> > [13] proto_0.3-10 reshape2_1.4 scales_0.2.4 splines_3.1.1
> > [17] stringr_0.6.2
> >
> > R> capabilities()
> > jpeg png tiff tcltk X11 aqua http/ftp sockets
> > TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE
> > libxml fifo cledit iconv NLS profmem cairo
> > TRUE TRUE TRUE TRUE TRUE TRUE TRUE
> >
> > [[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
> >
>
>
[[alternative HTML version deleted]]
More information about the R-SIG-Mac
mailing list