This project is archived and is in readonly mode.
Rails 3.0 beta does not work on Windows
-
E. Rider
The copy/paste of the error has introduced a strange formatting.
Here is a cleanup of the error message :C:\HOME\rails3_blog>rails generate scaffold post title:string content:text
C:/opt/ruby-1.9.1-p378-mingw/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/bin/rails:2: command not found: C:/HOME/rails3_blog/script/rails
C:/opt/ruby-1.9.1-p378-mingw/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/bin/rails:2:in exec': No such file or directory - C:/HOME/rails3_blog/script/rails (Errno::ENOENT)from C:/opt/ruby-1.9.1-p378-mingw/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/bin/rails:2:in <top (required)>' from C:/opt/ruby-1.9.1-p378-mingw/bin/rails:19:in `load' from C:/opt/ruby-1.9.1-p378-mingw/bin/rails:19:in `<main>' -
Fredrik Henne
Got the same error-messages running under Windows 7 - Ruby 1.8.7 and 1.9.1.
Of what I can find the problem is in the fact that Windows won't execute the script/rails file as a ruby-file (due to the file not being labeled as .rb). Windows can't read the Shebang-line either, which makes it a solid problem.
-
E. Rider
Thanks for the link to the other ticket.
This ticket can be closed. -
José Valim
- State changed from new to duplicate