Here’s the code in r2corba-1.4.1/rakelib/ext.rb
that detects the platform:
if RUBY_PLATFORM =~ /darwin/
osx_ver_major, osx_ver_minor = (`uname -r`).strip.split('.')[0,2].collect {|n| n.to_i }
if osx_ver_major == 10
@@osx_name = case osx_ver_minor
when 3
'panther'
when 4
'tiger'
when 5
'leopard'
when 6,7,8
'snowleopard'
end
end
platform_error unless @@osx_name
end
I tried hacking it and returning snowleopard
regardless. The gem built, but I have no way to test it. Given that so much software broke with each iteration between 10.6 and 10.9, I’m sceptical that it’ll work, but if you want to try it, find where the gem is stored (gem environment
will help with that, look at the INSTALLATION DIRECTORY
), edit the above file to have this at the end instead:
@@osx_name = 'snowleopard'
end
Then run gem install r2corba
and it will install from the existing files.
By the way, the problem appears to be a dependency on ACE, which doesn’t include support for anything beyond Snow Leopard and hasn’t been updated since May 2013.