# Mongrel not finding correct ruby path

**URL:** <https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246>\
**Category:** Mongrel\
**Created:** [November 5, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246 "2007-11-05T12:00:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![barunio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@barunio](https://www.ruby-forum.com/u/barunio)\
**Post date:** [November 5, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246/1 "2007-11-05T12:00:33Z")

</div>

hello all,

i have been trying to figure this out for the last few hours, and after  
seemingly exhausting all the google search results, i figured i would  
try  
this mailing list…

i just updated the ruby version on my ubuntu dapper drake box to the  
most  
recent version. i installed it into /usr/local/bin  
problematically, the previous installation was in /usr/bin  
mongrel still complains that:  
“Ruby version is not up-to-date; loading cgi\_multipart\_eof\_fix”

from looking at /usr/bin/mongrel\_rails, i can see that the first line of  
the  
file is:  
#!/usr/bin/ruby1.8  
which is the old version of ruby (1.8.4)  
I tried changing the shebang to the correct path of  
#!/usr/local/bin/ruby  
but then it gave me an error that it couldn’t find “rubygems”

every other method i could think of to have it point to the right place  
(such as moving the new ruby binary into the /usr/bin directory along  
with  
the rdoc, ri, etc. files) all resulted in the same problem with rubygems  
not  
being found.

does anyone have any idea how i can get mongrel to see the correct,  
updated  
version of ruby??

thanks…

---

<div class="post-metadata">

**Author:** ![barunio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@barunio](https://www.ruby-forum.com/u/barunio)\
**Post date:** [November 5, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246/2 "2007-11-05T12:19:17Z")

</div>

Have you installed rubygems in your new ruby installation?

See here, [Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.](http://www.rubyonrails.org/down), where the first step after  
installing ruby is to install rubygems.

This is where rubygems sits in my 1.8.6 ruby install:  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems

So, maybe you need to check your $PATH, check ruby -v , then install  
rubygems.

GC

---

<div class="post-metadata">

**Author:** ![barunio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@barunio](https://www.ruby-forum.com/u/barunio)\
**Post date:** [November 5, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246/3 "2007-11-05T15:30:10Z")

</div>

You can point GEM\_HOME to your old rubygems folder and it should work.

Vish

---

<div class="post-metadata">

**Author:** ![barunio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@barunio](https://www.ruby-forum.com/u/barunio)\
**Post date:** [December 25, 2007, 11:55am UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246/4 "2007-12-25T11:55:24Z")

</div>

Barun S. wrote:

> Forgot to reply back earlier, but I hadn’t installed rubygems in the new  
> ruby installation. I forgot that I would need to do so. Thank you both  
> for  
> the quick responses!

Hello,  
I’ve the same problem (after updating Ruby it doesn’t see the installed  
gems)  
So can you detail how did you resolve this roblem  
thanks

---

<div class="post-metadata">

**Author:** ![barunio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@barunio](https://www.ruby-forum.com/u/barunio)\
**Post date:** [November 9, 2007, 7:21am UTC](https://www.ruby-forum.com/t/mongrel-not-finding-correct-ruby-path/119246/5 "2007-11-09T07:21:35Z")

</div>

Forgot to reply back earlier, but I hadn’t installed rubygems in the new  
ruby installation. I forgot that I would need to do so. Thank you both  
for  
the quick responses!
