我需要使用openshift来部署Web应用程序并修改数据库连接的文件,然后安装RHC。但它无法设置。我安装了rbenv,但不知道如何使用。我的mac买了一个星期。基本上,安装的软件并不多。完整的错误消息如下:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1206:in `block in activate_dependencies': can't satisfy 'highline (~> 1.6.11)', already activated 'highline-1.7.1' (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in `activate_dependencies'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1180:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in `gem'
from /usr/bin/rhc:22:in `<main>'
任何人或任何人都可以帮我解决这个问题并让我正确设置RHC吗?
答案 0 :(得分:5)
您需要更新gem。
sudo gem install rubygems-update
sudo update_rubygems
sudo gem install rhc