I’m using ruby under ubuntu Linux, ruby version is 1.9.1
What the problem is, when using irb I can’t roll back the command to
the last one with “up” key in keyboard.
The result as below:
irb(main):001:0> File.file? “/etc/passwd”
=> true
irb(main):002:0> ^[[A # can’t roll back here
On Sun, Jan 10, 2010 at 5:40 PM, Marvin Gülker [email protected] wrote:
Did you compile Ruby yourself? If so, install one of the packages
libreadline5-dev or libreadline6-dev and then compile again.
Yes coz my ubuntu doesn’t have a ruby pre-installed, so I got the
source from ruby-lang.org and installed it by hand.
I have resolved the problem following your suggestion. Thanks.
I’m using ruby under ubuntu Linux, ruby version is 1.9.1
What the problem is, when using irb I can’t roll back the command to
the last one with “up” key in keyboard.
The result as below:
irb(main):001:0> File.file? “/etc/passwd”
=> true
irb(main):002:0> ^[[A # can’t roll back here
Do you know how to configure irb to resolve it?
Thanks.
Did you compile Ruby yourself? If so, install one of the packages
libreadline5-dev or libreadline6-dev and then compile again.
On Sun, Jan 10, 2010 at 5:40 PM, Marvin Gülker [email protected] wrote:
Did you compile Ruby yourself? If so, install one of the packages
libreadline5-dev or libreadline6-dev and then compile again.
Yes coz my ubuntu doesn’t have a ruby pre-installed, so I got the
source from ruby-lang.org and installed it by hand.
I have resolved the problem following your suggestion. Thanks.
You are aware that there is a packaged Ruby 1.9 available, are you?
I’m talking about a development box, not a production one. I was
thinking that maybe ruby1.9 is a snapshot and therefore sometimes
wouldn’t work. So I installed ruby1.9.1. Am I correct?
I’m talking about a development box, not a production one. I was
thinking that maybe ruby1.9 is a snapshot and therefore sometimes
wouldn’t work. So I installed ruby1.9.1. Am I correct?
I’m talking about a development box, not a production one. I was
thinking that maybe ruby1.9 is a snapshot and therefore sometimes
wouldn’t work. So I installed ruby1.9.1. Am I correct?
Ruby1.9 is an old release of ruby1.9.0, and is the only one available
on Ubuntu releases before Karmic. Ruby1.9.1 is ruby1.9.1 patchlevel
243 (in Karmic anyway) and is probably fine, but I personally compile
mine from source.
-Jonathan N.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.