在 Mac OSX 10.6 32 位版本上安装 Ruby 1.9.2
我开始进行 Ruby 应用程序开发,发现有许多 Ruby Gems 无法在 64 位上运行(我现在已经安装了)。他们的版主建议 Snow Leopard(10.6) 使用 32 位版本。
我访问了 Ruby 的网站,但没有找到适用于 32 位 10.6 的 Ruby 1.9.2 的单独安装程序
那么,我该如何修复它呢?我是否必须删除现有的 Ruby 1.9.2 并安装 32 位版本?
谢谢
更新1
问题 这是版主告诉我的:
您可能会遇到一些困难 wxRuby 与系统 ruby 一起工作 10.6 中提供。苹果已经做出了 迁移到 64 位后事情会变得困难 建筑学。我正在使用 10.6 和 我正在使用自己的 wxRuby 应用程序 Ruby 1.9.1 的 32 位版本。这有效 与宝石很好 可从 Rubyforge 下载。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,安装 Ruby Version Manager
然后,您可以安装任意数量的 Ruby 解释器。安装1.9.2
First, install Ruby Version Manager
Then, you can install any number of interpreters for Ruby. to install 1.9.2
在 Snow Leopard + RVM 下编译原生 gem 时出现问题
要点
Problems compiling native gems under Snow Leopard + RVM
and the gist