ruby-on-rails – 使用gem安装rails,错误加载命令:install undefined method’invoke_with_build_args`

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 使用gem安装rails,错误加载命令:install undefined method’invoke_with_build_args`前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试着在Debian上安装rails.运行此命令时

宝石安装导轨

我给出了这个错误

ERROR:  Loading command: install (LoadError)
    cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method ``invoke_with_build_args' for nil:NilClass

即使我尝试这个命令:
宝石安装
我给出了这个错误

ERROR:  Loading command: install (LoadError)
    cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method ``invoke_with_build_args' for nil:NilClass

我使用此链接从源代码ruby 2.1.2 build instruction构建ruby

我该怎么做才能克服这个错误

解决方法

@H_403_21@ 对于谁从源代码编译,他们必须检查依赖项.我想你需要安装这个库:
sudo apt-get install libssl-dev

然后你必须重新编译ruby并且一切正常.

原文链接:https://www.f2er.com/ruby/271102.html

猜你在找的Ruby相关文章