Install Ruby 1.9.2 on Mac OSX 10.6 with 32bit version

喜你入骨 提交于 2019-12-14 04:02:34

问题


I have started with Ruby app development and I see that there are many Ruby Gems which don't work on 64bit (which I have installed right now). Their moderators have suggested to use 32bit build for Snow Leopard(10.6).

I went to Ruby's website, but didn't find a separate installer for Ruby 1.9.2 for 32bit 10.6

So, how do I fix it? Will I have to remove my existing Ruby 1.9.2 and install the 32bit version?

Thanks

UPDATE 1

Problem This is what the moderators told me:

You may be a bit stuck for getting wxRuby working with the system ruby provided in 10.6. Apple has made things difficult by moving to 64-bit architecture. I'm using 10.6 and for wxRuby applications I'm using my own 32-bit build of Ruby 1.9.1. This works just fine with the gems that are downloadable from Rubyforge.


回答1:


First, install Ruby Version Manager

  • https://rvm.io/rvm/install/

Then, you can install any number of interpreters for Ruby. to install 1.9.2

rvm install 1.9.2



回答2:


Problems compiling native gems under Snow Leopard + RVM

and the gist



来源:https://stackoverflow.com/questions/3197686/install-ruby-1-9-2-on-mac-osx-10-6-with-32bit-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!