# Trouble installing mocha

**URL:** <https://www.ruby-forum.com/t/trouble-installing-mocha/172820>\
**Category:** Rails\
**Created:** [July 28, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/trouble-installing-mocha/172820 "2009-07-28T16:20:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 28, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/trouble-installing-mocha/172820/1 "2009-07-28T16:20:06Z")

</div>

I am trying to install mocha on my OS X MBP and when I use

sudo gem install mocha

I get this error:

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
Errno::ETIMEDOUT: Operation timed out - connect(2) (http://  
[RubyGems.org | your community gem host](http://gems.rubyforge.org/gems/mocha-0.9.7.gem))

I got it last night and thought maybe the service was down, but I get  
the same error this morning.

Thanks in Advance,  
Chas Lemley

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 28, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/trouble-installing-mocha/172820/2 "2009-07-28T17:53:13Z")

</div>

Nevermind, I figured it out. I was having a DNS issue with my router.

On Tue, Jul 28, 2009 at 10:18 AM, removed\_email\_address@domain.invalid \<
