简体   繁体   English

无法在Mac OSX 10.6.4上安装Ruby Gems 1.3.7

[英]Cannot Install Ruby Gems 1.3.7 on Mac OSX 10.6.4

I am following the instructions at http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard to install ruby 1.9.2 and rubygems 1.3.7 我正在按照http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard上的说明安装ruby 1.9.2和rubygems 1.3.7

Everything goes smoothly until I get to the "Compile and Install RubyGems" part and enter the command line: 一切顺利,直到我进入“编译并安装RubyGems”部分并输入命令行:

sudo /usr/local/bin/ruby setup.rb

This continually returns the following error: 这将不断返回以下错误:

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

I received the same error when I was trying to setup ruby 1.8.7, as well. 当我尝试设置ruby 1.8.7时,我也收到了相同的错误。

Please Advise... I got ruby on rails up and running on a previous mac about 1 year ago, but I can't seem to repeat my previous success. 请劝告...大约一年前,我在红宝石上运行了Mac,并在以前的Mac上运行,但是我似乎无法重复以前的成功。

Thank You David 谢谢大卫

我建议您改用RVM在Mac上管理Ruby版本: http : //rvm.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM