我试着在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并且一切正常.