Forum: Ruby Error installing visualruby MacOS X.9 ('Mavericks')

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D07b410ce48569e353caa64fea142220?d=identicon&s=25 Warren Adams-Ockrassa (warrenao)
on 2013-11-04 23:35
This appears to have come up off and on in this forum, but the responses
to the other questions seem mostly centered around Linux or Win.

I've made it as far as installing visual ruby ('gem install
visualruby'), and can get no farther. My install seems to die somewhere
near the top of the process. The line 'checking for Win32 OS... no'
would seem to be a clue. Is the visualruby installer testing to see if
it's running on Windows?

None of the provided configuration options seemed to make sense to me,
and absent documentation I wouldn't know which to try or what switches
to add anyway. Following is the text from the console window.

Guidance would be most appreciated. Thanks, and best regards.


Building native extensions.  This could take a while...
ERROR:  Error installing visualruby:
  ERROR: Failed to build gem native extension.

checking for GCC... yes
checking for Win32 OS... no
checking for cairo version (>= 1.2.0)... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.
You may
need configuration options.

Provided configuration options:
`parse_pc': .pc for xcb-shm doesn't exist. (RuntimeError)
`block in collect_cflags'
  from extconf.rb:158:in `required_pkg_config_package'
  from extconf.rb:166:in `<main>'

Gem files will remain installed in
/Library/Ruby/Gems/2.0.0/gems/cairo-1.12.6 for inspection.
Results logged to
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 tamouse m. (tamouse_m)
on 2013-11-04 23:58
(Received via mailing list)
On Nov 4, 2013, at 4:35 PM, Warren Adams-Ockrassa <>

> and absent documentation I wouldn't know which to try or what switches
>    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
> Provided configuration options:
>  --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
> /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:130:in
>  from
> `cflags'
> /Library/Ruby/Gems/2.0.0/gems/cairo-1.12.6 for inspection.
> Results logged to
> /Library/Ruby/Gems/2.0.0/gems/cairo-1.12.6/ext/cairo/gem_make.out
> --
> Posted via

First off, have you installed/updated XCode with the new Mavericks
install? Secondly, have you also upgraded the XCode command line tools
after upgrading XCode itself?

If you have done both of those things, and you are sure they worked
correctly, and you are content using the new Ruby version thats on the
system, did you do the gem install visualruby as root? (i.e., with sudo)

All these things have been snagging me up, so they might be snagging you
as well

yay for system upgrades
D07b410ce48569e353caa64fea142220?d=identicon&s=25 Warren Adams-Ockrassa (warrenao)
on 2013-11-05 02:46
Yes, yes, and yes.

Did your visualruby install fail after the installer realized you are
not running on Win32 as well?
This topic is locked and can not be replied to.