Rails 4 prefers to run on Ruby 2.0.
You're running
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
Please upgrade to Ruby 1.9.3 or newer to continue.
I suspect you aren’t executing the one in the Rails.root/bin directory.
****@ubuntu:~/ruby/things_i_bought$ which rake
/home/sean/.rvm/gems/ruby-2.0.0-p0/bin/rake
****@ubuntu:~/ruby/things_i_bought$ which rake --version
rake, version 10.0.4
****@ubuntu:~/ruby/things_i_bought$
I suspect you aren’t executing the one in the Rails.root/bin directory.
****@ubuntu:~/ruby/things_i_bought$ which rake
/home/sean/.rvm/gems/ruby-2.0.0-p0/bin/rake
****@ubuntu:~/ruby/things_i_bought$ which rake --version
rake, version 10.0.4
****@ubuntu:~/ruby/things_i_bought$
Rails 4 prefers to run on Ruby 2.0.
You're running
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
Please upgrade to Ruby 1.9.3 or newer to continue.
"Also, when I type in which ruby it freezes the console. "
I think whatever ruby you think you’re running is damaged. Based on the
rails output about needing 2.0 but having 1.8.7 I guessing you’ld be
well
served by uninstalling 2.0 and redoing the install. How about if you
type
“ruby --version” in your console, does that also hang?
Also, when I type in which ruby it freezes the console.
In that case you have a serious problem that is nothing to do with
ruby itself. All which does (AFAIK) is to look in the path for the
file to execute.
Okay, I tried that. I uninstalled all previous version of ruby with rvm.
Now the only version of ruby on my machine is 2.0:
sean@ubuntu:~/ruby$ rvm list
rvm rubies
=* ruby-2.0.0-p0 [ i686 ]
=> - current
=* - current && default
* - default
sean@ubuntu:~/ruby$
But, it’s still not working. I also tried uninstalling and reinstalling
rails4 through gem. Now rails 4 is the only version of rails on my
machine. I think next I’ll try uninstalling rake. Maybe it’s rake.
On Wed, Jun 5, 2013 at 7:16 AM, Alphonse 23 [email protected]
wrote:
Still, I don’t know how to get Rails 4 to recognize Ruby 2…
1 check if you have .ruby-version file
2 check the contents of your Gemfile for references to ruby 1.8 or
Force
it to use ruby 2.0
3 rm Gemfile.lock and rebuild