BigBigBang
BigBigBang

Reputation: 31

Is it possible to get Rubygems working with Ruby 1.8.3?

I need to get Rubygems working with Ruby 1.8.3.

I know there are old versions of Rubygems which work with that version, and think Rubygems 1.0.1 was the last.

I can install it but when I try to install a gem I get the following error:

http response 302 fetching ...

Does someone know any tips to get it working except update my Ruby version?

Upvotes: 3

Views: 163

Answers (1)

the Tin Man
the Tin Man

Reputation: 160551

The 302 response is the Internet's way of telling you you're going to be redirected to a different URL.

I suspect that error is the result of being redirected to a site that no longer exists. In your home directory there might be a file called .gemrc. cat ~/.gemrc and you should see some information like:

---
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org/
:update_sources: true
:verbose: true

The :sources: key is the... uh... key. https://rubygems.org is the current repo for gems. Your (old) version of Rubygems probably doesn't know that.


That said, it'd be REALLY smart to update your Ruby if at all possible. Installing gems with a Ruby that old will be a problem, plus you are missing a myriad of security patches and bug fixes. If you are not able use sudo to install on your system, then give serious consideration to using RVM or RBEnv to install a more current version in your home directory as a sandbox. Your code, your sanity, and your system, will thank you.

Upvotes: 3

Related Questions