# Gem::RemoteFetcher::FetchError

**URL:** <https://www.ruby-forum.com/t/gem-fetcherror/139366>\
**Category:** Ruby\
**Created:** [June 3, 2008, 10:04am UTC](https://www.ruby-forum.com/t/gem-fetcherror/139366 "2008-06-03T10:04:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wawa88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5a626/32.png) [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Post date:** [June 3, 2008, 10:04am UTC](https://www.ruby-forum.com/t/gem-fetcherror/139366/1 "2008-06-03T10:04:52Z")

</div>

I would like to install mysql in ruby as i need to use mysql in rails  
application…so this is the code in type in the command prompt in ruby  
directory

gem install mysql

but i got these  
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
getaddrinfo: no address associated with hostname.(SocketError)

How do i solve this problem. Really need help. Thanks

Wawa

---

<div class="post-metadata">

**Author:** ![wawa88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5a626/32.png) [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Post date:** [June 4, 2008, 2:44am UTC](https://www.ruby-forum.com/t/gem-fetcherror/139366/2 "2008-06-04T02:44:40Z")

</div>

looks like a dns problem. Make sure dns is working. Maybe use opendns  
🙂  
-R

Emmie W. wrote:

> I would like to install mysql in ruby as i need to use mysql in rails  
> application…so this is the code in type in the command prompt in ruby  
> directory
> 
> gem install mysql
> 
> but i got these  
> ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
> getaddrinfo: no address associated with hostname.(SocketError)
> 
> How do i solve this problem. Really need help. Thanks
> 
> Wawa

---

<div class="post-metadata">

**Author:** ![wawa88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5a626/32.png) [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Post date:** [June 5, 2008, 6:40am UTC](https://www.ruby-forum.com/t/gem-fetcherror/139366/3 "2008-06-05T06:40:19Z")

</div>

On Jun 3, 2008, at 17:43 PM, Roger P. wrote:

> > getaddrinfo: no address associated with hostname.(SocketError)
> > 
> > How do i solve this problem. Really need help. Thanks
> 
> looks like a dns problem. Make sure dns is working. Maybe use  
> opendns  
> 🙂

Also, check to see that all the URLs listed in `gem sources -l` resolve.

---

<div class="post-metadata">

**Author:** ![wawa88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5a626/32.png) [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Post date:** [August 8, 2008, 1:54am UTC](https://www.ruby-forum.com/t/gem-fetcherror/139366/4 "2008-08-08T01:54:02Z")

</div>

Visit [www.idardarji.net](http://www.idardarji.net) for educational help

Thank You

On Wed, Jul 30, 2008 at 1:27 PM, Somani Anand  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> E:\ruby\bin\>gem update --system

–  
Thanks

Alpesh J Darji

www.kws.co.in

+91 982 0597 794

Think Different, Think Ahead, Think Fast !!!
