我正在尝试在Debian上安装Rails。当运行以下命令时:
gem install 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
即使我尝试执行以下命令:
gem install
也会出现以下错误: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:ruby 2.1.2 build instruction 我该如何解决这个错误?