4

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?

Community
  • 1
  • 1
La-comadreja
  • 5,627
  • 11
  • 36
  • 64

1 Answers1

1

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.

Community
  • 1
  • 1
Edd
  • 975
  • 1
  • 6
  • 14