Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:31:23+00:00 2026-06-09T14:31:23+00:00

I am attempting to install the Cairo package in the development version of R

  • 0

I am attempting to install the Cairo package in the development version of R on Mac OS X 10.7.4, but I’m running into an issue that I cannot resolve.

I have installed Cairo with homebrew (i.e., brew install cairo) and received the following message:

==> Caveats This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this program and installing another version
in parallel can cause all kinds of trouble.

The Cairo provided by Leopard is too old for newer software to link
against.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you’ll need to add its lib
& include paths to your build variables:

LDFLAGS  -L/usr/local/Cellar/cairo/1.12.2/lib
CPPFLAGS -I/usr/local/Cellar/cairo/1.12.2/include

With the above message in mind, I attempted to install the Cairo package from R-Forge with the following R command:

install.packages(“Cairo”, repos=”http://www.rforge.net/”, configure.args = c(“CAIRO_LIBS=/usr/local/Cellar/cairo/1.12.2/lib”, “CAIRO_CFLAGS=/usr/local/Cellar/cairo/1.12.2/include/cairo”))

I receive the following error:

checking cairo.h usability… no

checking cairo.h presence… no

checking for cairo.h… no

configure: error: Cannot find cairo.h!

Please install cairo (http://www.cairographics.org/) and/or set

CAIRO_CFLAGS/LIBS correspondingly. ERROR: configuration failed for package ‘Cairo’

I repeated the same command without the repos argument (by default, I use the FHCRC mirror) with the same result.

At this point, the problem seems obvious: the file cairo.h is not present. But then I listed the files in the include/cairo directory. Here’s the response:

ls /usr/local/Cellar/cairo/1.12.2/include/cairo

cairo-deprecated.h cairo-ft.h
cairo-ps.h
cairo-script-interpreter.h
cairo-svg.h
cairo-xcb.h
cairo-xlib.h
cairo-features.h
cairo-pdf.h
cairo-quartz.h
cairo-script.h
cairo-version.h
cairo-xlib-xrender.h
cairo.h

So, I’m pointing the installation of the Cairo package to the appropriate place, but the error persists. I have tried variations, such as CAIRO_CFLAGS=/usr/local/Cellar/cairo/1.12.2/include, with no luck.

Thoughts? Any help you can provide is greatly appreciated.

In case it’s necessary, here is my sessionInfo:

R Under development (unstable) (2012-08-08 r60208) Platform: x86_64-apple-darwin11.4.0 (64-bit)

locale: [1]
en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils
datasets methods base

other attached packages: [1] BiocInstaller_1.5.12

loaded via a namespace (and not attached): [1] tools_2.16.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:31:24+00:00Added an answer on June 9, 2026 at 2:31 pm

    A coworker and I just fixed the problem by ignoring all of what I typed above. Rather, we installed Cairo and all of its dependencies from source manually, thereby bypassing the usage of brew or variants like port. This worked like a charm, so I am not entirely sure what was wrong above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to install Ruby with RVM. I already have Ruby installed, but
I'm attempting to install the PIL library in an Virtual Enviroment that I have
I am attempting to install a .bpk package into the Borland C++ Builder 5
I'm attempting to install Weka, which I have installed into /weka directory. I set
Im attempting to install the Mail_Mbox-0.6.3 package as i need to use the classes
I am attempting to install Ruby 1.9.3 on Mac OS X Lion, same method
I'm attempting to install ace-jump-mode for emacs 24.1.50.1. I've installed it with M-x package-install,
I'm attempting to run kohana classes in the install.php file but am having no
I'm attempting to install a nuget package which has incorrectly specified one of it's
I'm attempting to install the following Haskell package on Windows using Cygwin: HaskellCuda You

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.