I was trying to install redhat client for OpenShift cloud paltform in my Windows 7 laptop. But I got the following error,
_______________________________________
ERROR: Error installing rhc:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe mkrf_conf.rb
3 [main] ruby 1688 child_info_fork::abort: address space needed by ‘etc.so ‘ (0x1E0000) is already occupied
3 [main] ruby 2220 child_info_fork::abort: address space needed by ‘etc.so ‘ (0x1E0000) is already occupied
Building native extensions. This could take a while…
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rhc-rest-0.0.14 f or inspection.
_______________________________________
I have raised the same with OpenShift community forum and I have received a very quick response which pointed me out to a knowledge base article. I followed the procedure and it worked very well. Actually the original solution is at mattberther.com. Thanks to him.
Follow these steps to resolve the address space issue.
1. Open Cygwin terminal
2. find /lib/ruby/gems -iname ‘*.so’ > /tmp/ruby.gems.local.so.lst
3. Quit cygwin
4. Start –> Run
5. cmd.exe
6. cd c:\path\to\cygwin\bin\
7. ash.exe
8. usr/bin/rebaseall -T /tmp/ruby.gems.local.so.lst
9. Reboot
But still I am getting the native extension building issue. It will be resolved soon I hope. Anyway I am happy for trying out something new.