Rails 4 will not run (under rbenv); pathname problem with app_rails_loader

This is an OS X Homebrew install, with rbenv root in
/usr/local/var/rbenv;
Ruby 2.0.0, and Rails 4.0.0. ‘gem install rails’ went without
complaint.
Then I tried to run ‘rails new hypothetical_app’. That, and all calls to
the rails app, show that app_rails_loader is finding a
directorybin/rails where it expects to find a
file bin/rails:

loop’
from
from /usr/local/var/rbenv/versions/2.0.0-p195/bin/rails:23:in load’
from /usr/local/var/rbenv/versions/2.0.0-p195/bin/rails:23:in
from /usr/local/var/rbenv/versions/2.0.0-p195/bin/rails:23:in’

Aside from not setting my rbenv root to ~/.rbenv, I can’t think of any
departures I have made from completely standard installation of
everything.

On Jul 3, 2013, at 2:03 PM, Matthew D. [email protected] wrote:

This is an OS X Homebrew install, with rbenv root in /usr/local/var/rbenv; Ruby
2.0.0, and Rails 4.0.0. ‘gem install rails’ went without complaint. Then I tried
to run ‘rails new hypothetical_app’. That, and all calls to the rails app, show
that app_rails_loader is finding a directory bin/rails where it expects to find a
file bin/rails:

Aside from not setting my rbenv root to ~/.rbenv, I can’t think of any
departures I have made from completely standard installation of everything.

So, I just did this on a brand new machine, but using rvm instead of
rbenv. No problems on this end. I’d be looking at the rbenv
configuration.