ruby-on-rails - 运行 '__rvm_make install' 时出错,

标签 ruby-on-rails macos rvm

当我尝试将 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获取头 rvm 安装 ruby​​-2.3.0 但我仍然遇到同样的错误。我整天都在搜索,但找不到任何解决方案。

最佳答案

万一有人在这个错误中绊倒,我删除了 .rvm 文件夹,
然后我删除“which ruby​​”给出的目录中的ruby和Updata_rubygems文件夹。
我用稳定的 ruby​​ 重新安装 rvm 并将 ruby​​ 更新到 2.2.4
我工作完美无缺。

关于ruby-on-rails - 运行 '__rvm_make install' 时出错,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35228481/

相关文章:

ruby-on-rails - Rails 应用程序中的参数可能缺少值

macos - 我想忽略 Firefox 上的 CSS 规则

ruby - 如何在 Debian Linux for ARM 上运行 pry

ruby - 无法使用 Rubinius 2.0.0 gem 安装 Celluloid

ruby-on-rails - 引用错误 : navigator is not defined using ReactJS on Ruby on Rails server side rendering

javascript - Rails 4 JQuery 函数返回 'is not a function'

ruby-on-rails - 使用 Rails(HTTP 请求)连接到 Web 服务?

macos - Sketch App 的 Apple 脚本

macos - git 问题通过 https : routines:SSL23_GET_SERVER_HELLO

ruby-on-rails-3 - 升级到 osx lion,bundler 得到 native 扩展错误 - 没有这样的文件或目录