当我尝试将ruby更新为2.2.4或2.2.3时,我遇到错误。 我在Osx El Capiton上
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/shishirsapkota/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...
ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/shishirsapkota/.rvm/src/ruby-2.3.0 - please wait
ruby-2.3.0 - #configuring - please wait
ruby-2.3.0 - #post-configuration - please wait
ruby-2.3.0 - #compiling - please wait
ruby-2.3.0 - #installing - please wait
Error running '__rvm_make install',
showing last 15 lines of /Users/shishirsapkota/.rvm/log/1454687438_ruby-2.3.0/install.log
from ./tool/rbinstall.rb:686:in `block in <class:Installer>'
from ./tool/rbinstall.rb:754:in `block (2 levels) in <main>'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:821:in `block in each_spec'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:743:in `block (2 levels) in each_gemspec'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:742:in `each'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:742:in `block in each_gemspec'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:741:in `each'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:741:in `each_gemspec'
from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:819:in `each_spec'
from ./tool/rbinstall.rb:751:in `block in <main>'
from ./tool/rbinstall.rb:801:in `block in <main>'
from ./tool/rbinstall.rb:798:in `each'
from ./tool/rbinstall.rb:798:in `<main>'
make: *** [do-install-nodoc] Error 1
+__rvm_make:0> return 2
There has been an error while running make install. Halting the installation.
然后我尝试了 rvm get head 和 rvm install ruby-2.3.0 但我仍然遇到同样的错误。我整天都在搜索,但我无法&#39找不到任何解决方案。
答案 0 :(得分:3)
你有xcode命令行工具吗?尝试安装xcode。 xcode-select --install
答案 1 :(得分:2)
如果任何一个人在这个错误中绊倒,我删除了.rvm文件夹, 然后我删除ruby,以及&#34;由ruby&#34;给出的目录中的Updata_rubygems文件夹。 我用稳定的ruby重新安装了rvm并将ruby更新为2.2.4 我的工作完美无缺。