运行gem specific_install时出错 [英] Error when running gem specific_install

查看:108
本文介绍了运行gem specific_install时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行'gem specific_install'( https://github.com/rdp/specific_install)从Github仓库安装另一个gem:

  sudo gem specific_install https://github.com/RemoteRepository/foo_gem .git 

提示输入我的Github用户名和密码后,我可以下载该gem。但是,我得到以下错误:

 错误:执行gem时(NoMethodError)
未定义的方法` build'for Gem :: Package:Module

显然,其他人基于评论具有相同的错误到与这个问题相关的specific_install相关答案:如何从GitHub源代码安装gem?

这个错误怎么解决? 根据此问题,这是由于的过期版本造成的, gem (rubygems)。



更新 gem 应该解决它,如果您正在使用rvm你应该运行 rvm ruby​​gems current (这对我有效),如果你不使用rvm我相信你应该遵循如何升级rubygems


I am trying to run 'gem specific_install' (https://github.com/rdp/specific_install) to install another gem from a Github repository:

sudo gem specific_install https://github.com/RemoteRepository/foo_gem.git

After being prompted for my Github Username and password, I am able to download the gem. However, I get the following error:

ERROR:  While executing gem ... (NoMethodError)
    undefined method `build' for Gem::Package:Module

Apparently, other people have the same error based on a comment to a specific_install related answer to this question: How to install gem from GitHub source?

How can this error be resolved?

解决方案

According to this issue this is due to an outdated version of gem (rubygems).

Updating gem should fix it, if you are using rvm you should run rvm rubygems current (this worked for me), if you are not using rvm I believe you should follow How to upgrade rubygems.

这篇关于运行gem specific_install时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆