Jump to content

Recommended Posts

First of all, I'm new to Ruby. Second of all, don't castrate me for running Fedora Core 7. I'm at the mercy of GoDaddy's virtual dedicated servers :P

 

Okay, so basically, I've been trying to get Rails installed on my server for the past day, and I'm not entirely sure what the problem is. Ruby and RubyGems are already installed, and a quick check shows their paths:

 

[root@ip-*** /]# which ruby
/usr/bin/ruby
[root@ip-*** /]# which gem
/usr/bin/gem

So, according to like.. 20 different sources I've found online, all I would need to do is...

 

gem install rails

 

This is where I encounter my problem.

 

[root@ip-*** /]# gem install rails
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

 

Other sources have said I need to update my RubyGems, but this error duplicates itself when I try.

 

[root@ip-*** /]# gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

 

Env data for RubyGems shows:

 

[root@ip-*** /]# gem env
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - GEM PATH:
     - /usr/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org

 

Like I said, I'm a Ruby n00b, so any help would be appreciated. I would really like to get Rails up and running on my system. Thanks!

 

If you need more info, just let me know what I'm leaving out.

Have you tried the alternative for updating ruby.  One is manually doing it and the other is the two step process:

gem install rubygems-update
update_rubygems

http://rubygems.org/pages/download

 

I'm sure you read this but that's what the manual tells you to do:

http://help.rubygems.org/kb/rubygems/why-do-i-get-http-response-302-or-301-when-installing-a-gem

 

I did indeed read that and tried it as well.

 

Turns out the official Ruby version when doing a yum install on Fedora is 1.8.6.  I was attempting to use RubyGems to get Rails 3.0.*, which require Ruby 1.8.7 -or- 1.9.2.

 

I ended up downloading RVM and using that to install and default Ruby 1.9.2 on my server (which automatically included the latest release of RubyGems.. problem solved!).  After that it was just a matter of installing rails.

 

Thanks for the input Maq.  I had noticed references to RVM on several sites that I found, so I finally decided to look into it.  Turns out it was the solution all along.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.