我按照http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard的说明安装ruby 1.9.2和rubygems 1.3.7
一切顺利,直到我进入“编译并安装RubyGems”部分并进入命令行:
sudo /usr/local/bin/ruby setup.rb
这会不断返回以下错误:
David-Issas-MacBook-Pro:rubygems-1.3.7 davidissa$ ruby setup.rb
/usr/local/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- thread.so (LoadError)
from /usr/local/lib/ruby/1.8/thread.rb:5
from ./lib/rubygems.rb:11:in `require'
from ./lib/rubygems.rb:11
from setup.rb:24:in `require'
from setup.rb:24
当我尝试设置ruby 1.8.7时,我收到了同样的错误。
请建议......大约1年前,我在以前的Mac上运行ruby并运行,但我似乎无法重复我以前的成功。
谢谢 大卫