# Script/console problem

**URL:** <https://www.ruby-forum.com/t/script-console-problem/116915>\
**Category:** Rails\
**Created:** [October 11, 2007, 4:27am UTC](https://www.ruby-forum.com/t/script-console-problem/116915 "2007-10-11T04:27:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 4:27am UTC](https://www.ruby-forum.com/t/script-console-problem/116915/1 "2007-10-11T04:27:54Z")

</div>

Hi  
everytime i try to run script/console on my ubuntu box it gives me  
this error

Loading development environment.  
/var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25:in  
`exec': No such file or directory - irb -r irb/completion -r script/../config/../config/environment -r console_app -r console_with_helpers --simple-prompt (Errno::ENOENT) from /var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/ console.rb:25 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
from script/console:3

I have updated gem and tried but it fails  
everything is working fine except this which i need it sometimes to  
try some codes out

any suggestions  
Thanks

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 7:25am UTC](https://www.ruby-forum.com/t/script-console-problem/116915/2 "2007-10-11T07:25:25Z")

</div>

Shuaib85 wrote:

> console.rb:25  
> any suggestions  
> Thanks

What happens when you type “irb” (no quotes) at the shell prompt?

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 7:57am UTC](https://www.ruby-forum.com/t/script-console-problem/116915/3 "2007-10-11T07:57:04Z")

</div>

there is no irb but I have irb1.8  
i tried to modify the mentioned file but it did not work

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 10:32am UTC](https://www.ruby-forum.com/t/script-console-problem/116915/4 "2007-10-11T10:32:33Z")

</div>

Shuaib85 wrote:

> there is no irb but I have irb1.8  
> i tried to modify the mentioned file but it did not work

You don’t have the interactive Ruby shell installed which script/console  
uses. You probably are using a Debian-based install which annoyingly  
splits Ruby up into a bazillion components that you have to install  
separately if you want everything (okay it’s more like 5 or 6 but  
still).

If you are using a Debian-based Linux box try:

sudo apt-get install irb

and see if that installs it.

If you are using something else you’ll either need to use that  
platform’s package manager to install it or install Ruby from its  
sources.

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/script-console-problem/116915/5 "2007-10-11T13:57:39Z")

</div>

On 10/11/07, Michael W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you are using a Debian-based Linux box try:
> 
> sudo apt-get install irb
> 
> and see if that installs it.
> 
> If you are using something else you’ll either need to use that  
> platform’s package manager to install it or install Ruby from its sources.

The OP indicated he was using ubuntu which is, of course debian based.

That said, I long ago gave up trying to use debian packaged versions  
of Ruby. It’s not just that they break it up into pieces, but that  
they twist gems support to fit the debian interpretation of the FHS.

On Debian systems, if you’re serious about Ruby and/or Rails you’re  
much better off installing Ruby and gem from source, and installing it  
to /usr/local

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [October 11, 2007, 11:00am UTC](https://www.ruby-forum.com/t/script-console-problem/116915/6 "2007-10-11T11:00:07Z")

</div>

Thanks a lot Mr Wang. It works, now I have to irb but that is fine

Regards
