使用gem安装rails,错误加载命令:安装未定义的方法'invoke_with_build_args` [英] installing rails with gem , error loading command : install undefined method 'invoke_with_build_args`
本文介绍了使用gem安装rails,错误加载命令:安装未定义的方法'invoke_with_build_args`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
gem install rails
我给了这个错误:
错误:加载命令:install(LoadError)
无法加载这样的文件 - zlib
错误:执行gem时...(NoMethodError)
未定义的方法``invoke_with_build_args'为零:NilClass
即使当我尝试这个命令时:
gem install
我给出了这个错误:
错误:加载命令:install(LoadError)
无法加载此类文件 - zlib
错误:执行gem时(NoMethodError )
未定义方法``invoke_with_build_args'为nil:NilClass
我使用此链接来构建来自资源的红宝石 ruby 2.1.2构建指令
我能做些什么来克服这个错误?
解决方案
m来源,他们必须检查依赖关系。我想你需要安装这个库:
sudo apt-get install libssl-dev
然后你必须重新编译ruby,并且一切正常。
I'm try to install rails on Debian. when run this command
gem install rails
I gave this error:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method ``invoke_with_build_args' for nil:NilClass
even when I try this command:
gem install
I gave this error:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method ``invoke_with_build_args' for nil:NilClass
I used this link to build ruby from sources ruby 2.1.2 build instruction
what can I do to overcome this error?
解决方案
For who compile from source, they must checked dependencies. I think you need to install this library :
sudo apt-get install libssl-dev
Then you must recompiled ruby and everything worked.
这篇关于使用gem安装rails,错误加载命令:安装未定义的方法'invoke_with_build_args`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文