# Mechanize - installed but not found?

**URL:** <https://www.ruby-forum.com/t/mechanize-installed-but-not-found/168260>\
**Category:** Ruby\
**Created:** [May 18, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/mechanize-installed-but-not-found/168260 "2009-05-18T20:59:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![caleb-boese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@caleb-boese](https://www.ruby-forum.com/u/caleb-boese)\
**Post date:** [May 18, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/mechanize-installed-but-not-found/168260/1 "2009-05-18T20:59:41Z")

</div>

Running OSX leopard and  
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.5.0]

I’ve installed mechanize:

\*\*\* LOCAL GEMS \*\*\*  
actionmailer (2.3.2, 2.2.2)  
actionpack (2.3.2, 2.2.2)  
activerecord (2.3.2, 2.2.2)  
activeresource (2.3.2, 2.2.2)  
activesupport (2.3.2, 2.2.2)  
hpricot (0.8.1)  
mechanize (0.9.2) \<—  
nokogiri (1.2.3) \<—

… but it doesnt show up in in the gems directory:

shoes\_projects =\> cd /usr/lib/ruby/gems/1.8/gems  
gems =\> ls  
RedCloth-3.0.4 ferret-0.11.4  
actionmailer-1.3.3 gem\_plugin-0.2.2  
actionmailer-1.3.6 gem\_plugin-0.2.3  
actionpack-1.13.3 highline-1.2.9  
actionpack-1.13.6 hpricot-0.6  
actionwebservice-1.2.3 libxml-ruby-0.3.8.4  
actionwebservice-1.2.6 mongrel-1.0.1  
activerecord-1.15.3 mongrel-1.1.4  
activerecord-1.15.6 needle-1.3.0  
activesupport-1.4.2 net-sftp-1.1.0  
activesupport-1.4.4 net-ssh-1.1.2  
acts\_as\_ferret-0.4.1 rails-1.2.3  
capistrano-2.0.0 rails-1.2.6  
cgi\_multipart\_eof\_fix-2.2 rake-0.7.3  
cgi\_multipart\_eof\_fix-2.5.0 ruby-openid-1.1.4  
daemons-1.0.7 ruby-yadis-0.3.4  
daemons-1.0.9 rubynode-0.1.3  
dnssd-0.6.0 sources-0.0.1  
fastthread-1.0 sqlite3-ruby-1.2.1  
fastthread-1.0.1 termios-0.9.4  
fcgi-0.8.7  
gems =\>

Ultimately I’d like to get a Shoes GUI to include mechanize, but Shoes  
can’t do the necessary require, because it can’t find it. I’m wondering  
if this is why.

Either way, I’d really like to know why mechanize is not in the gem  
directory.

First time posting here. Any help is appreciated. And I’ll clarify any  
questions. Thanks!

---

<div class="post-metadata">

**Author:** ![caleb-boese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@caleb-boese](https://www.ruby-forum.com/u/caleb-boese)\
**Post date:** [May 18, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/mechanize-installed-but-not-found/168260/2 "2009-05-18T21:23:11Z")

</div>

caleb banister wrote:

> Ultimately I’d like to get a Shoes GUI to include mechanize, but Shoes  
> can’t do the necessary require, because it can’t find it. I’m wondering  
> if this is why.

I think i found the answer to this part of my question in another  
thread:

Shoes.setup do  
gem ‘mechanize’  
end

---

<div class="post-metadata">

**Author:** ![caleb-boese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@caleb-boese](https://www.ruby-forum.com/u/caleb-boese)\
**Post date:** [May 19, 2009, 12:31am UTC](https://www.ruby-forum.com/t/mechanize-installed-but-not-found/168260/3 "2009-05-19T00:31:49Z")

</div>

On Mon, May 18, 2009 at 9:23 PM, caleb banister  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I think i found the answer to this part of my question in another  
> thread:
> 
> Shoes.setup do  
> gem ‘mechanize’  
> end

Since Shoes comes with its own Ruby distribution, it installs gems in  
a specific location (~/ .shoes/+gem/). See also:

[http://hackety.org/2008/05/08/clearingUpTheWholeShoesAndRubyGemsDeal.html](http://hackety.org/2008/05/08/clearingUpTheWholeShoesAndRubyGemsDeal.html)
