# Different ruby versions...different results

**URL:** <https://www.ruby-forum.com/t/different-ruby-versions-different-results/188425>\
**Category:** Rails\
**Created:** [May 11, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/different-ruby-versions-different-results/188425 "2010-05-11T19:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [May 11, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/different-ruby-versions-different-results/188425/1 "2010-05-11T19:29:40Z")

</div>

i just got a new mbp and started transferring some projects over.  
when starting to use geokit on it, geocode\_ip\_address worked but not  
on the imac.  
differences are imac is running ruby 1.9.1p376 and mbp is running  
ruby  
1.8.7.  
is there something in that difference that would cause geocode ip  
address not to work on imac?  
now that i see this working on the mbp, im concerned it will stop  
working once i upgrade to 1.9.1.  
it seems to be a to\_yaml conversion for the cookie thats causing the  
error.

id be curios to install 1.9.1 on the mbp if i could control which  
version of ruby to use.  
im kinda new at the whole ruby rails thing and unsure of how to load  
and use different versions.

any suggestions?

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [May 12, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/different-ruby-versions-different-results/188425/2 "2010-05-12T19:53:08Z")

</div>

so i went and followed hivelogic instructions on how to upgrade ruby:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

and it went well…meaning which ruby returns /usr/local/bin/ruby  
except ruby -v still returns 1.8.7 where sudo ruby -v returns 1.9.1

thats kinda what i wanted…maybe, im not sure  
but how can i make the 1.9.1 the default version?  
or…how can i manage my apps with two versions of ruby installed?

ruby -v # 1.8.7  
sudo ruby -v # 1.9.1

whats going on here?
