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:in
`declaration'
  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:in
`all_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:in
`cflags'
  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:in
`collect'
  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:in
`cflags'
  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:in
`have_package'
  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
/Library/Ruby/Gems/2.0.0/gems/cairo-1.12.6/ext/cairo/gem_make.out

-- 
Posted via http://www.ruby-forum.com/.