1

I'm looking to install a gem from a Github repo by using RVM, not bundler and am a little confused about the process. Do I create a gemset first? Sorry if this is an easy fix or a repeat.

Thanks!

jchou
  • 13
  • 3

1 Answers1

2

If the project has a *.gemspec file in the root directory, you can clone the repo locally and then perform the following

gem build GEMNAME.gemspec
gem install gemname-version.gem

The gemname-version.gem file is created when invoking gem build. If there is no *.gemspec file, then look for instructions on how to build the gem locally - most gem projects on Github will describe how to do this in the README.

You don't need to create a Gemset within RVM if you don't need it.

EDIT

Take a look at this Stackoverflow post for additional information and alternative approaches.

Community
  • 1
  • 1
Bart Jedrocha
  • 11,450
  • 5
  • 43
  • 53
  • Thanks so much! Sorry, I actually saw the first post but assumed the answers were all pertaining to bundler installs. – jchou Jan 12 '15 at 19:08