Question

I'm trying to install r2corba(1.4.1) on my OS X 10.9.2 and I get this error which I don't know how to resolve. I'm using ruby version 2.1.1.

ERROR: Error installing r2corba: ERROR: Failed to build gem native extension.

Unsupported platform: x86_64-darwin12.0.

Does it mean that r2corba is no longer supported on OS X?

Thanks in advance for your help.

Was it helpful?

Solution

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.

OTHER TIPS

We have released yesterday R2CORBA 1.5.1. It isn't formally tested on MacOSX but it does include some fixes that should resolve this, for more details see the Remedy IT website.

R2CORBA 1.4.1 has been released before the latest release of MacOSX was available. The real solution is to report this to Remedy IT (the author of R2CORBA) through their support site at http://osportal.remedy.nl. When Remedy IT has enough interesting/funding to justify the work to make a new R2CORBA release this could be solved.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top