# Can't get mocha to install thru gem

**URL:** <https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422>\
**Category:** Ruby\
**Created:** [November 6, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422 "2007-11-06T22:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pood](https://www.ruby-forum.com/u/pood)\
**Post date:** [November 6, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422/1 "2007-11-06T22:04:51Z")

</div>

I’ve got an interactive program that I’d like to unit test and I’ve been  
referred to Mocha.

I tried to install it thru gem, but it couldn’t find it.

I’m on linux, how do I install it manually? (sorry, its kinda of a linux  
question)

thanks

---

<div class="post-metadata">

**Author:** ![pood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pood](https://www.ruby-forum.com/u/pood)\
**Post date:** [November 6, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422/2 "2007-11-06T23:30:21Z")

</div>

Something wrong with your

sudo gem install mocha

?

Jason

---

<div class="post-metadata">

**Author:** ![pood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pood](https://www.ruby-forum.com/u/pood)\
**Post date:** [November 8, 2007, 12:44am UTC](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422/3 "2007-11-08T00:44:44Z")

</div>

On 06/11/2007, Feng T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve got an interactive program that I’d like to unit test and I’ve been  
> referred to Mocha.
> 
> I tried to install it thru gem, but it couldn’t find it.
> 
> I’m on linux, how do I install it manually? (sorry, its kinda of a linux  
> question)
> 
> thanks

You’re going to have to give us a few more details. Can you tell us what  
commands you’ve tried and what results or errors you’ve seen.
