1

I am somewhat new to ruby, and some of the times I have used it, I can not install Gems via the gem program. Looking through the ruby docs, I noticed that Ruby has a library for gems in its core. I also noticed that you can download a gem directly as a .gem file. Is there someway I can use ruby code to extract and install a gem. This would be extremely helpful seeming as programs like RailsInstaller seem to always be outdated.

6
  • Why can't you install gems using the gem command in the first place ? Commented Aug 12, 2014 at 16:40
  • I don't know, at home it works, but other places, it times out. Commented Aug 12, 2014 at 16:41
  • Maybe your gem is just a bit outdated? Try gem update --system to install the last version. Commented Aug 12, 2014 at 16:46
  • 1
    @James_Parsons, If it is failing to install from your office, ask your IT department about the proxies they have. They might be blocking it. Commented Aug 12, 2014 at 16:46
  • 1
    I think @Rahul is right, the proxies may be blocking Commented Aug 12, 2014 at 16:53

1 Answer 1

2

If I understand you correctly, how about you download the .gem and install it locally using gem install? Check out: "How can I install a local gem?"

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

Comments

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.