Hi, yesterday I attempted to test my Rails app with Ruby 1.9. I installed all necessary gems, saw that some of them aren''t compatible with 1.9 and switched back to 1.8. Now my app still thinks it has to go with 1.9 and shows the following error message when I try to test it. ---------8<--------------------------------------- $ rake test (in /home/helge/Development/kunsthof) Missing these required gems: mysql rmagick You''re running: ruby 1.9.1.243 at /usr/bin/ruby1.9.1 rubygems 1.3.6 at /home/helge/.gem/ruby/1.9.1, /usr/lib/ruby1.9.1/gems/1.9.1 Run `rake gems:install` to install the missing gems. ---------8<--------------------------------------- Apparently Rails always uses the most recent Ruby it can find. Can I tell it to use 1.8 somehow? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Apr 3, 2010 at 1:28 AM, Xx Xy <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Apparently Rails always uses the most recent Ruby it can find.I would expect it to use the first one in your path :-) That would be the first thing to check, in any case... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Now I got it. Rake uses the Ruby specified in /usr/bin/rake''s shebang line. The 1.9 rake was the latest installed and so it used Ruby1.9. To use Ruby1.8 I typed ''rake1.8''. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Apr 4, 2010 at 12:19 AM, Xx Xy <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Now I got it. Rake uses the Ruby specified in /usr/bin/rake''s shebang > line. The 1.9 rake was the latest installed and so it used Ruby1.9. To > use Ruby1.8 I typed ''rake1.8''. >I would recommend using RVM because it takes care of this quite nicely. Thus, you can find more information about it here: http://rvm.beginrescueend.com Good luck, -Conrad> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Nice! Thank you! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- invalid byte sequence utf-8 OR best option to sanitize content brought in with net::http? single non-utf character causes rails to crash
- rake bombs on openssl (on Ubuntu)
- Could not find rake-0.8.7 in any of the sources
- A little problem
- RoR still not working on SuSE 9.0 - incomplete headers received