Previously I have been trying to install ruby and rails and used apt-get at one point. I did install previous versions of ruby and rails by mistake which I had to correct. Now I used rvm to install ruby 2.0.0 and rails 4.0.0 but when I try to run the rake command I get: /usr/bin/env: ruby1.9.1: No such file or directory The problem here seems to be is that my system is looking for something for ruby1.9.1 when I am using ruby 2.0.0. What is going on here? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/206cefbcf97f3e544f1d9b62902bdf17%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Sep 1, 2013 at 4:54 PM, Dan Distraff <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Previously I have been trying to install ruby and rails and used apt-get > at one point. I did install previous versions of ruby and rails by > mistake which I had to correct. Now I used rvm to install ruby 2.0.0 > and rails 4.0.0 but when I try to run the rake command I get: > > /usr/bin/env: ruby1.9.1: No such file or directory > > > The problem here seems to be is that my system is looking for something > for ruby1.9.1 when I am using ruby 2.0.0. What is going on here?Reload your shell by restarting your emulator and do "rvm use 2.0.0" then "which rake" and report back to us what you get at that point, telling us it''s looking for something in 1.9.1 doesn''t tell us much because that could be anything from a rbenv install that went back to left over remains of system 1.9.1 or a bug in RVM (probably not.) or that you simply forgot to restart your shell and follow the directions supplied by RVM when you installed it. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxvEZe0u1f_pxwKVmO%2Bxti-uizOs31Fup6YftwJu_vE8w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell wrote in post #1120296:> On Sun, Sep 1, 2013 at 4:54 PM, Dan Distraff <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> Previously I have been trying to install ruby and rails and used apt-get >> at one point. I did install previous versions of ruby and rails by >> mistake which I had to correct. Now I used rvm to install ruby 2.0.0 >> and rails 4.0.0 but when I try to run the rake command I get: >> >> /usr/bin/env: ruby1.9.1: No such file or directory >> >> >> The problem here seems to be is that my system is looking for something >> for ruby1.9.1 when I am using ruby 2.0.0. What is going on here? > > Reload your shell by restarting your emulator and do "rvm use 2.0.0" > then "which rake" and report back to us what you get at that point, > telling us it''s looking for something in 1.9.1 doesn''t tell us much > because that could be anything from a rbenv install that went back to > left over remains of system 1.9.1 or a bug in RVM (probably not.) or > that you simply forgot to restart your shell and follow the directions > supplied by RVM when you installed it.Thanks for the post. I tried the rvm use command you suggested and got: "RVM is not a function, selecting rubies with ''rvm use ...'' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example." I then did which rake and got: /usr/local/bin/rake I will be trying to work around the first error. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/feb8da1251f0fb55fb98791890b68159%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Update: I tried rvm use 2.0.0 and it worked. Now when I did which rake I get /home/<myName>/.rvm/gems/ruby-2.0.0-p247@global/bin/rake When I tried rake db:migrate I get: Could not find coffee-script-source-1.6.3 in any of the sources Run `bundle install` to install missing gems. So right now I am trying to figure that out. Thanks for the help so far. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d4a079fdca3227bac7d4d9f8ab3713d5%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sep 1, 2013, at 6:11 PM, Dan Distraff wrote:> Update: I tried rvm use 2.0.0 and it worked. > > Now when I did which rake I get > /home/<myName>/.rvm/gems/ruby-2.0.0-p247@global/bin/rake > > When I tried rake db:migrate I get: > > Could not find coffee-script-source-1.6.3 in any of the sources > Run `bundle install` to install missing gems.There''s the solution to your current problem, in the line above this one. Walter> > So right now I am trying to figure that out. Thanks for the help so > far. > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d4a079fdca3227bac7d4d9f8ab3713d5%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5BF35C08-F971-45E1-AB26-9702030A40F1%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
Yes, it worked! You are a life-saver. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4a5c273d5cac432cb33ede028cc77907%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.