2013-10-26 85 views
2

我刚刚更新到最新的Mac OS Maverick,现在在终端中打开应用程序时,我遇到以下消息(s)。任何想法如何解决这个问题? Thx提前!未安装ruby-2.0.0-p247

未安装ruby-2.0.0-p247。

要安装这样做: 'RVM安装Ruby-2.0.0-P247'

[app]$rvm install ruby-2.0.0-p247 

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p195/bin' is not at first place usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', 
to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p195'. 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p247. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 

Checking requirements for smf. 
Installing requirements for smf. 
anthonypanepinto password required for 'sm get head': 
Updating system.. 
Installing required package: libtool.......................... 
Error running 'requirements_smf_lib_install libtool', 
please read /usr/local/rvm/log/1382766047_ruby-2.0.0-p247/package_install_libtool.log 
Failed installation package: libtool of: libtool, gdbm. 
Requirements installation failed with status: 1. 
+0

'ruby-2.0.0-p247'很好。安装它! –

+0

非常感谢Amit,但是在尝试使用rvm安装ruby-2.0.0-p247时,我仍然遇到上述错误。有任何想法吗? –

回答

6

你需要运行:

rvmsudo rvm get head # update rvm 
rvm autolibs homebrew # tell rvm to use homebrew 
rvm install 2.0.0  # install ruby 
rvm use 2.0.0 --default # use ruby and make it default 

这railsinstaller后剩......我认为它可以自动化 - 需要修复它。

+0

感谢mpapis,但是我在尝试上述方法时仍然遇到这个错误:没有二进制红宝石可用于:osx/10.9/x86_64/ruby​​-2.0.0-p247。 继续编译。请阅读'rvm help mount'以获取关于二进制红宝石的更多信息。 检查osx_brew的要求。 安装osx_brew的要求。 更新系统......... 运行'requirements_osx_brew_update_system ruby​​-2.0.0-p247'错误, 请阅读/usr/local/rvm/log/1382767455_ruby-2.0.0-p247/update_system.log 要求安装失败,状态为:1. –

+0

所以第一部分是警告而不是错误,第二部分是不同错误,请确保'brew update'按预期工作,然后继续安装ruby。 – mpapis

11

我看到一些人仍然有这个问题,我是其中之一。从mpapis运行指令后,我仍然无法安装红宝石2.0.0,所以我这样做

rvm install 2.0.0 --autolibs=1 

这对我来说是伎俩。