Rubygem installation error: Error: While executing gem... (GEM: remotesourceexception)

Source: Internet
Author: User

The specific process is as follows:

1. After the InstantRails-2.0 is installed, configure the ruby/bin directory in the environment variable path (if there are multiple Ruby in the system, the system recognizes the path when executing the command line)

2. Enter the doscommand line and execute gem update -- system. The result is:

Updating rubygems...
Error: While executing gem... (GEM: remotesourceexception)
HTTP Response 302 fetching http://rubygems.org/yaml

This is because the gem configuration is too low and remote updates cannot be performed. If you execute gem-V, it is 1.0.1.

3. Download The rubygems-update-1.3.7.gem, http://rubyforge.org/frs/download.php/70695/rubygems-update-1.3.7.gem from the address below

Then the doscommand runs the directory where the file is located, execute the gem install -- local rubygems-update-1.3.7.gem, and the information appears

Successfully installed rubygems-update-1.3.7
1 gem installed
Installing Ri documentation for rubygems-update-1.3.7...
Installing rdoc documentation for rubygems-update-1.3.7...
Cocould not find main page readme
Cocould not find main page readme
Cocould not find main page readme
Cocould not find main page readme

Run the gem-V command to check whether the update was successful. I didn't understand what cocould not find main page README, but I found this sentence on http://production.s3.rubygems.org/yaml.

If you have an older version of rubygems installed, then you can still
Do it in two steps:

$ Gem install rubygems-update # Again, might need to be admin/root
$ Update_rubygems #... here too
I followed and executed update_rubygems again. Then there was a lot of information, so I didn't post it. Then I executed gem-V and found that the update was successful. It was already 1.3.7.

This step is the source of success !!!!!!

4. Execute gem update -- System, and the prompt is displayed.

Updating rubygems
Nothing to update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.