nethnet Posted April 7, 2011 Share Posted April 7, 2011 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 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. Quote Link to comment https://forums.phpfreaks.com/topic/232992-problem-with-rubygemsinstalling-rubyonrails-on-fedora-core-7/ Share on other sites More sharing options...
Maq Posted April 7, 2011 Share Posted April 7, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/232992-problem-with-rubygemsinstalling-rubyonrails-on-fedora-core-7/#findComment-1198291 Share on other sites More sharing options...
nethnet Posted April 7, 2011 Author Share Posted April 7, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/232992-problem-with-rubygemsinstalling-rubyonrails-on-fedora-core-7/#findComment-1198359 Share on other sites More sharing options...
Maq Posted April 7, 2011 Share Posted April 7, 2011 Awesome, glad you figured it out. I recently had a similar problem with Ruby and different versions. Quote Link to comment https://forums.phpfreaks.com/topic/232992-problem-with-rubygemsinstalling-rubyonrails-on-fedora-core-7/#findComment-1198365 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.