# I Broke the Console

**URL:** <https://www.ruby-forum.com/t/i-broke-the-console/117159>\
**Category:** Rails\
**Created:** [October 14, 2007, 2:23am UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159 "2007-10-14T02:23:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [October 14, 2007, 2:23am UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159/1 "2007-10-14T02:23:55Z")

</div>

Oops. I upgraded my Rails installation. I then noticed that the Ruby  
was an older version than what I saw on [Ruby-lang.org](http://Ruby-lang.org) so I download  
the MacOS X one-click installer and ran it. It didn’t seem to change  
the ruby version, but I decided I didn’t care enough to figure out  
why.

Then this morning I tried the console. Oops. I ran the gem installer  
again to make sure the Rails installation was okay, or at least that  
all the gems were up to date.

Still get the error.

Hints?

Thanks,  
–Colin

Coder-iMac:~/Desktop/formr colin$ rails -v  
Rails 1.2.5  
Coder-iMac:~/Desktop/formr colin$ ruby -v  
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]  
Coder-iMac:~/Desktop/formr colin$ script/console  
Loading development environment.  
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from /usr/lib/ruby/1.8/irb/init.rb:218:in `require’  
from /usr/lib/ruby/1.8/irb/init.rb:218:in `load_modules' from /usr/lib/ruby/1.8/irb/init.rb:216:in `each’  
from /usr/lib/ruby/1.8/irb/init.rb:216:in `load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup’  
from /usr/lib/ruby/1.8/irb.rb:54:in `start’  
from /usr/bin/irb:13  
Coder-iMac:~/Desktop/formr colin$

---

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [October 14, 2007, 5:07am UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159/2 "2007-10-14T05:07:01Z")

</div>

i’d probably upgrade to ruby 1.8.5 first

---

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [October 14, 2007, 5:12am UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159/3 "2007-10-14T05:12:17Z")

</div>

The error is coming from readline lib. Search for hivelogic article on  
ror installation

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![banry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@banry](https://www.ruby-forum.com/u/banry)\
**Post date:** [October 15, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159/4 "2007-10-15T20:37:21Z")

</div>

Okay, I went all the way through the hivelogic installation guide,  
which is beautifully written and really clear.

I get:  
Coder-iMac:~/Desktop/formr colin$ ruby -v  
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.3]  
Coder-iMac:~/Desktop/formr colin$ rails -v  
Rails 1.2.5  
Coder-iMac:~/Desktop/formr colin$

But when I tried to run the console it complained:  
Coder-iMac:~/Desktop/formr colin$ script/console  
Cannot find gem for Rails ~\>1.2.4.0:  
Install the missing gem with ‘gem install -v=1.2.4 rails’, or  
change environment.rb to define RAILS\_GEM\_VERSION with your  
desired version.

So I went into  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.4/environments/environment.rb  
and set RAILS\_GEM\_VERSION to be 1.2.5 but that seems pretty silly.

And when I run the server in my application directory (~/Desktop/formr/  
script/server) WEBrick starts up and the following is the information  
in the default page. (Oh. I don’t see a way to attach something. It  
reports 1.8.2 as the Ruby version and 1.2.4 as the Rails version.)

Is this because the formr application was created with 1.2.4 and  
there’s some secret way to tell it to look for the new 1.2.5 version?  
And why doesn’t it find the new Ruby version yet?

Thanks.
