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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shuaib85 wrote:> 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 > ThanksWhat happens when you type "irb" (no quotes) at the shell prompt? -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
there is no irb but I have irb1.8 i tried to modify the mentioned file but it did not work On Oct 11, 1:25 pm, Michael Wang <rails-u...-JtyympAsP2K7zZZRDBGcUA@public.gmane.org> wrote:> Shuaib85 wrote: > > 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 > > What happens when you type "irb" (no quotes) at the shell prompt? > > -- > Michael Wang--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shuaib85 wrote:> there is no irb but I have irb1.8 > i tried to modify the mentioned file but it did not workYou 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 Wang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks a lot Mr Wang. It works, now I have to irb but that is fine Regards On Oct 11, 4:31 pm, Michael Wang <rails-u...-JtyympAsP2K7zZZRDBGcUA@public.gmane.org> wrote:> 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 Wang--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 10/11/07, Michael Wang <rails-user-JtyympAsP2K7zZZRDBGcUA@public.gmane.org> 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/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---