我正在尝试在 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
我使用此链接从源代码构建 rubyruby 2.1.2 构建指令 https://gorails.com/setup/ubuntu/14.10
我该怎么做才能克服这个错误?
对于从源代码编译的人来说,他们必须检查依赖关系。我认为你需要安装这个库:
sudo apt-get install libssl-dev
然后你必须重新编译 ruby 并且一切正常。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)