在尝试升级到Ruby 1.9.3的过程中,我想我破坏了一些东西。我相信我已经成功安装了Ruby 1.9.3。但是,现在当我在终端中键入ruby -v
时,我没有收到任何消息。这是示例输出:
rish-macbookair:~ rish$ ruby -v
rish-macbookair:~ rish$
我做的最后一件事是在XCode中安装“命令行工具”,因为我收到了“遗失库”错误。
关于可能发生的事情或从哪里开始的任何想法?
编辑:尝试重新安装1.9.3时,我明白了这一点:
rish-macbookair:~ rish$ rvm reinstall 1.9.3
/usr/local/rvm/src/ruby-1.9.3-p327 has already been removed.
Removing /usr/local/rvm/rubies/ruby-1.9.3-p327...
https://rvm.io/binaries/osx/10.8/x86_64/ruby-1.9.3-p327.tar.bz2 - #configure
ruby-1.9.3-p327 - #download
ruby-1.9.3-p327 - #extract
ruby-1.9.3-p327 - #validate
ruby-1.9.3-p327 - #setup
sed: RE error: illegal byte sequence
Saving wrappers to '/usr/local/rvm/bin'.
ruby-1.9.3-p327 - #importing default gemsets (/usr/local/rvm/gemsets/), this may take time ...
Making gemset ruby-1.9.3-p327 pristine.
Making gemset ruby-1.9.3-p327@global pristine.
rish-macbookair:~ rish$
我也尝试过重新安装RVM,但我回到了同一个地方
答案 0 :(得分:3)
您正在使用旧版本的rvm,请尝试:
rvm get head
rvm reinstall 1.9.3
rvm use 1.9.3