Matthew Davis
2013-Jul-03 19:03 UTC
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 *directory*bin/rails where it expects to find a *file* bin/rails:> > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:34:inread'': > Is a directory - bin/rails (Errno::EISDIR) > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:34:in > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:34:inblock > in exec_app_rails'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:32:in > loop'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:32:in > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:32:in > exec_app_rails'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/cli.rb:6:in<top > (required)>'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > require'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > require'' > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/bin/rails:9:in > from > /usr/local/var/rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0/bin/rails:9:in > '' > 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. -- 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/49c86ad6-84a8-4ddf-9e93-85c645db56da%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Tamara Temple
2013-Jul-05 05:05 UTC
Re: Rails 4 will not run (under rbenv); pathname problem with app_rails_loader
On Jul 3, 2013, at 2:03 PM, Matthew Davis <mattmdavis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. -- 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/F952898A-314A-4D13-8B16-02900A4BB1D2%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.