简体   繁体   English

无法安装任何Ruby gem-未定义方法`invoke_with_build_args`

[英]Unable to install any Ruby gems - undefined method `invoke_with_build_args`

I installed Ruby 2.1 from rubyinstaller.org on my Windows 7 system. 我在Windows 7系统上从rubyinstaller.org安装了Ruby 2.1。

While trying to install any gem, I am facing the following error: 尝试安装任何gem时,我遇到以下错误:

C:\Ruby21>gem install compass
ERROR:  Loading command: install (Win32::Registry::Error)
    The system cannot find the file specified.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

I've no clue what's wrong. 我不知道怎么了。

Try to reinstall again the ruby package using cygwin installer. 尝试使用cygwin安装程序重新安装ruby软件包。 Even if they are the same version. 即使它们是相同的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法安装 gems,因为“nil:NilClass 的未定义方法 `invoke_with_build_args'” - Can't install gems because "undefined method `invoke_with_build_args' for nil:NilClass" 使用gem安装rails,错误加载命令:安装未定义的方法'invoke_with_build_args` - installing rails with gem , error loading command : install undefined method 'invoke_with_build_args` 尝试安装导轨。 错误1。 没有这样的文件要加载——openssl 错误 2. 未定义的方法 `invoke_with_build_args' for nil:NilClass - Trying to install rails. Error1. no such file to load -- openssl Error 2. undefined method `invoke_with_build_args' for nil:NilClass 无法安装任何红宝石宝石 - Unable to install any ruby gems 在Ruby On Rails中使用Gems:未定义的方法? - Using Gems with Ruby On Rails: Undefined method? Heroku ruby​​ buildpack错误 - 未定义的局部变量或方法`install_language_pack_gems' - Heroku ruby buildpack error - undefined local variable or method `install_language_pack_gems' 无法迁移Ruby宝石? - Unable to migrate Ruby gems? Heroku 捆绑器未定义方法“存在?”,无法通过捆绑器安装 gem - Heroku bundler undefined method "present?", fails to install gems via bundler 无法卸载红宝石宝石 - Unable to uninstall ruby gems 无法安装宝石 - Unable to install gems
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM