# (Gem::RemoteSourceException)

**URL:** <https://rubytalk.org/t/gem-remotesourceexception/63560>\
**Category:** ruby-talk\
**Created:** [10 September 2011 17:12 UTC](https://rubytalk.org/t/gem-remotesourceexception/63560 "2011-09-10T17:12:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic\_Rose](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@Dominic\_Rose](https://rubytalk.org/u/Dominic_Rose)\
**Post date:** [10 September 2011 17:12 UTC](https://rubytalk.org/t/gem-remotesourceexception/63560/1 "2011-09-10T17:12:44Z")

</div>

Hello,

I am troubled by this error again...

#aptitude install ruby1.9, ruby1.9-dev, rdoc1.9, irb1.9 and ri1.9  
# gem1.9 search -r mysql

\*\*\* REMOTE GEMS \*\*\*

ERROR: While executing gem ... (Gem::RemoteSourceException)  
&nbsp;&nbsp;&nbsp;&nbsp;HTTP Response 302 fetching [http://gems.rubyforge.org/yaml](http://gems.rubyforge.org/yaml)

# aptitude install rubygems  
# gem update  
Updating installed gems...  
ERROR: While executing gem ... (Gem::RemoteSourceException)  
&nbsp;&nbsp;&nbsp;&nbsp;HTTP Response 302

I try to install the last version of rubygems I unpacked from a tgz  
file.  
# ruby1.9 setup.rb

It hang for 3min using 80% CPU so I closed it.

# aptitude install ruby  
# ruby setup.rb  
=\> syntax error

It would help me a lot if you have an answer to this. The gem1.9 command  
comes with ruby1.9. I also tried to install Ruby Version Manager. It  
said it was installed successfully but:  
-bash: rvm: command not found

And no I didn't install Recoverable Virtual Memory tools 🙂

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Luis\_Lavena1](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luis\_Lavena1](https://rubytalk.org/u/Luis_Lavena1)\
**Post date:** [10 September 2011 17:21 UTC](https://rubytalk.org/t/gem-remotesourceexception/63560/2 "2011-09-10T17:21:48Z")

</div>

Dominic Rose wrote in post #1021156:

> Hello,
> 
> I am troubled by this error again...
> 
> #aptitude install ruby1.9, ruby1.9-dev, rdoc1.9, irb1.9 and ri1.9  
> # gem1.9 search -r mysql
> 
> \*\*\* REMOTE GEMS \*\*\*
> 
> ERROR: While executing gem ... (Gem::RemoteSourceException)  
> &nbsp;&nbsp;&nbsp;&nbsp;HTTP Response 302 fetching [RubyGems.org | your community gem host](http://gems.rubyforge.org/yaml)
> 
> # aptitude install rubygems  
> # gem update  
> Updating installed gems...  
> ERROR: While executing gem ... (Gem::RemoteSourceException)  
> &nbsp;&nbsp;&nbsp;&nbsp;HTTP Response 302

Change your sources:

gem sources --remove [http://gems.rubyforge.org](http://gems.rubyforge.org)  
gem sources --add [http://rubygems.org](http://rubygems.org)

Your version of RubyGems can't handle 302 redirects.

> **···**
>
> --  
> Luis Lavena
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Dominic\_Rose](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@Dominic\_Rose](https://rubytalk.org/u/Dominic_Rose)\
**Post date:** [10 September 2011 17:51 UTC](https://rubytalk.org/t/gem-remotesourceexception/63560/3 "2011-09-10T17:51:34Z")

</div>

Thanks but I wich it was that simple 😉

# gem sources --remove [http://gems.rubyforge.org](http://gems.rubyforge.org)  
ERROR: While executing gem ... (Gem::RemoteSourceException)  
&nbsp;&nbsp;&nbsp;&nbsp;HTTP Response 302

Same thing for adding a source

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
