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!

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks so much! Sorry, I actually saw the first post but assumed the answers were all pertaining to bundler installs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.