hi i had ruby 1.8.7 in my system. (Ubuntu 9.04) so in console when i type: which ruby => /usr/bin/ruby ruby -v =>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] now i have installed ruby 1.9 side by side to the previous one and something goes wrong during that. now in console: which ruby =>/usr/local/bin/ruby ruby -v =>ruby 1.9.0 (2007-12-25 revision 14709) [i686-linux] ruby1.8 -v =>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] ruby1.9 -v =>ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux] problem is that now i''m not able to start web server i.e. when i pass command ''ruby script/server'' to start Webrick (inside my rails application), the following error comes: /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:33:in `require'': no such file to load -- builder (LoadError) from /home/abh/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:33:in `rescue in <top (required)>'' from /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:2:in `<top (required)>'' from /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support.rb:26:in `require'' from /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support.rb:26:in `<top (required)>'' from /home/abhi/Rails_Projects/Blog/vendor/rails/railties/lib/commands/server.rb:1:in `require'' from /home/abhi/Rails_Projects/Blog/vendor/rails/railties/lib/commands/server.rb:1:in `<top (required)>'' from script/server:3:in `require'' from script/server:3:in `<main>'' when i pass ''ruby script/console'' : /usr/local/lib/ruby/1.9.0/irb/completion.rb:10:in `require'': no such file to load -- readline (LoadError) from /usr/local/lib/ruby/1.9.0/irb/completion.rb:10:in `<top (required)>'' from /usr/local/lib/ruby/1.9.0/irb/init.rb:250:in `require'' from /usr/local/lib/ruby/1.9.0/irb/init.rb:250:in `block in load_modules'' from /usr/local/lib/ruby/1.9.0/irb/init.rb:248:in `each'' from /usr/local/lib/ruby/1.9.0/irb/init.rb:248:in `load_modules'' from /usr/local/lib/ruby/1.9.0/irb/init.rb:21:in `setup'' from /usr/local/lib/ruby/1.9.0/irb.rb:54:in `start'' from /usr/local/bin/irb:13:in `<main>'' can anyone guide me..? thanx. -- Posted via http://www.ruby-forum.com/.
you will have to install gem and all your gems using the new ruby 1.9 installation. The gem install is isolated to the ruby install. On Aug 30, 10:12 pm, Abhishek Singh <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hi > i had ruby 1.8.7 in my system. (Ubuntu 9.04) > so in console when i type: > which ruby > => /usr/bin/ruby > ruby -v > =>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] > > now i have installed ruby 1.9 side by side to the previous one and > something goes wrong during that. now in console: > which ruby > =>/usr/local/bin/ruby > ruby -v > =>ruby 1.9.0 (2007-12-25 revision 14709) [i686-linux] > ruby1.8 -v > =>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] > ruby1.9 -v > =>ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux] > > problem is that now i''m not able to start web server i.e. > when i pass command ''ruby script/server'' to start Webrick (inside my > rails application), the following error comes: > > /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:33:in > `require'': no such file to load -- builder (LoadError) > from > /home/abh/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:33:in > `rescue in <top (required)>'' > from > /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support/vendor.rb:2:in > `<top (required)>'' > from > /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support.rb:26:in > `require'' > from > /home/abhi/Rails_Projects/Blog/vendor/rails/activesupport/lib/active_support.rb:26:in > `<top (required)>'' > from > /home/abhi/Rails_Projects/Blog/vendor/rails/railties/lib/commands/server.rb:1:in > `require'' > from > /home/abhi/Rails_Projects/Blog/vendor/rails/railties/lib/commands/server.rb:1:in > `<top (required)>'' > from script/server:3:in `require'' > from script/server:3:in `<main>'' > > when i pass ''ruby script/console'' : > > /usr/local/lib/ruby/1.9.0/irb/completion.rb:10:in `require'': no such > file to load -- readline (LoadError) > from /usr/local/lib/ruby/1.9.0/irb/completion.rb:10:in `<top > (required)>'' > from /usr/local/lib/ruby/1.9.0/irb/init.rb:250:in `require'' > from /usr/local/lib/ruby/1.9.0/irb/init.rb:250:in `block in > load_modules'' > from /usr/local/lib/ruby/1.9.0/irb/init.rb:248:in `each'' > from /usr/local/lib/ruby/1.9.0/irb/init.rb:248:in `load_modules'' > from /usr/local/lib/ruby/1.9.0/irb/init.rb:21:in `setup'' > from /usr/local/lib/ruby/1.9.0/irb.rb:54:in `start'' > from /usr/local/bin/irb:13:in `<main>'' > > can anyone guide me..? > thanx. > -- > Posted viahttp://www.ruby-forum.com/.
heimdull wrote:> you will have to install gem and all your gems using the new ruby 1.9 > installation. The gem install is isolated to the ruby install. > > On Aug 30, 10:12�pm, Abhishek Singh <rails-mailing-l...@andreas-s.net>which gems i should install. when i type ''gem list'' it shows: ****LOCAL GEMS**** how can i get the list of gems and how can i know that which gems are required?? i am using rails 2.1.0 -Abhishek -- Posted via http://www.ruby-forum.com/.
heimdull wrote:> you will have to install gem and all your gems using the new ruby 1.9 > installation. The gem install is isolated to the ruby install. > > On Aug 30, 10:12�pm, Abhishek Singh <rails-mailing-l...@andreas-s.net>how can i make my gems using ruby 1.9?? -abhishek -- Posted via http://www.ruby-forum.com/.
[snip]> > can anyone guide me..? >First, you''ll need to install Ruby 1.9.1 because it was the first production release of Ruby 1.9. Next, you should be able to install gems as follows: For Ruby 1.9.1: sudo gem1.9 install <gem-name> For Ruby 1.8.7: sudo gem1.8 install <gem-name> Good luck, -Conrad> thanx. > -- > Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
Hi.. If you want to work with both version use rvm.. http://www.rubyinside.com/rvm-ruby-version-manager-2347.html Rejoice *+ o +* Arun Kumar .J +91-97 89 89 19 33 http://railsbuilder.blogspot.com Sent from Mahape, MH, India On Mon, Aug 31, 2009 at 1:54 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> [snip] > >> >> can anyone guide me..? >> > > First, you''ll need to install Ruby 1.9.1 because it was the first > production release of Ruby 1.9. Next, you should be able to install gems as > follows: > > For Ruby 1.9.1: > > sudo gem1.9 install <gem-name> > > For Ruby 1.8.7: > > sudo gem1.8 install <gem-name> > > Good luck, > > -Conrad > > >> thanx. >> -- >> Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---