Error installing visualruby MacOS X.9 ('Mavericks')

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.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

extconf.rb
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:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
–with-pkg-config
–without-pkg-config
–with-override-variables
–without-override-variables
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:239:in
parse_pc': .pc for xcb-shm doesn't exist. (RuntimeError) from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:181:indeclaration’
from
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:130:in
requires_private' from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:311:inall_required_packages’
from
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:195:in
collect_cflags' from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:134:incflags’
from
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:196:in
block in collect_cflags' from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:195:incollect’
from
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:195:in
collect_cflags' from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:134:incflags’
from
/Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:364:in
cflags' from /Library/Ruby/Gems/2.0.0/gems/pkg-config-1.1.4/lib/pkg-config.rb:415:inhave_package’
from extconf.rb:158:in required_pkg_config_package' from extconf.rb:166:in

Gem files will remain installed in
/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

On Nov 4, 2013, at 4:35 PM, Warren Adams-Ockrassa [email protected]
wrote:

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 http://www.ruby-forum.com/.

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

Yes, yes, and yes.

Did your visualruby install fail after the installer realized you are
not running on Win32 as well?