Script/console problem

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:ingem_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

Shuaib85 wrote:

console.rb:25
any suggestions
Thanks

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


Michael W.

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

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.

On 10/11/07, Michael W. [email protected] 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/

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

Regards

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs