<div dir="ltr">I installed my R with brew install. And I run R with Rstudio in the newest version. <br>Whenever I try to save a figure to pdf file with the export to button in Rstudio, I get the following message<br>Warning messages:<br>1: In cairo_pdf(file = "/Users/xinlianzhang/Desktop/Rplot.pdf", width = 5.22917,  :<br>  unable to load shared object '/usr/local/Cellar/r/3.2.0_1/R.framework/Resources/library/grDevices/libs//cairo.so':<br>  dlopen(/usr/local/Cellar/r/3.2.0_1/R.framework/Resources/library/grDevices/libs//cairo.so, 6): Library not loaded: /usr/local/lib/libjpeg.8.dylib<br>  Referenced from: /usr/local/Cellar/r/3.2.0_1/R.framework/Resources/library/grDevices/libs//cairo.so<br>  Reason: Incompatible library version: cairo.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 12.0.0<br>2: In cairo_pdf(file = "/Users/xinlianzhang/Desktop/Rplot.pdf", width = 5.22917,  :<br>  failed to load cairo DLL<br><br>在 2015年4月8日星期三 UTC-4下午7:28:51,O'Hanlon, Simon J写道:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">I’m trying to compile Cairo on OS X 10.10.2 and R 3.1.3. ./configure seems to run ok, but I get a compilation error about a symbol not being found, namely _FT_Done_Face. The details are:
<br>
<br>Error : .onLoad failed in loadNamespace() for 'Cairo', details:
<br>  call: dyn.load(file, DLLpath = DLLpath, ...)
<br>  error: unable to load shared object '/Library/Frameworks/R.<wbr>framework/Versions/3.1/<wbr>Resources/library/Cairo/libs/<wbr>Cairo.so':
<br>  dlopen(/Library/Frameworks/R.<wbr>framework/Versions/3.1/<wbr>Resources/library/Cairo/libs/<wbr>Cairo.so, 6): Symbol not found: _FT_Done_Face
<br>  Referenced from: /Library/Frameworks/R.<wbr>framework/Versions/3.1/<wbr>Resources/library/Cairo/libs/<wbr>Cairo.so
<br>  Expected in: flat namespace
<br> in /Library/Frameworks/R.<wbr>framework/Versions/3.1/<wbr>Resources/library/Cairo/libs/<wbr>Cairo.so
<br>Error: loading failed
<br>Execution halted
<br>
<br>Am I missing some dependency or something?
<br>
<br>So as not to clog the post, my sessionInfo() is available at: <a href="http://pastebin.com/raw.php?i=kQFiY699" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpastebin.com%2Fraw.php%3Fi%3DkQFiY699\46sa\75D\46sntz\0751\46usg\75AFQjCNHbqjxdZzUoKK3bYV8uVw4i2bp98w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpastebin.com%2Fraw.php%3Fi%3DkQFiY699\46sa\75D\46sntz\0751\46usg\75AFQjCNHbqjxdZzUoKK3bYV8uVw4i2bp98w';return true;">http://pastebin.com/raw.php?i=<wbr>kQFiY699</a>
<br>And the output of ./configure is available at: <a href="http://pastebin.com/raw.php?i=wCUGtbBZ" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpastebin.com%2Fraw.php%3Fi%3DwCUGtbBZ\46sa\75D\46sntz\0751\46usg\75AFQjCNEBLisRGVQlhlqHdu9GFBLwroB0sw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpastebin.com%2Fraw.php%3Fi%3DwCUGtbBZ\46sa\75D\46sntz\0751\46usg\75AFQjCNEBLisRGVQlhlqHdu9GFBLwroB0sw';return true;">http://pastebin.com/raw.php?i=<wbr>wCUGtbBZ</a>
<br>
<br>Thanks,
<br>
<br>Simon
<br>
<br>
<br>
<br>        [[alternative HTML version deleted]]
<br>
<br></blockquote></div>