Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 3.0 beta does not work on Windows

#3898

On Windows, I've been able to create an application structure via
rails rails3_blog

but other uses of the rails script fail (rails server, rails generate, ...)

C:\HOME\rails3_blog>ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

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/ra
ils: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/ra
ils:2:in exec': No such file or directory - C:/HOME/rails3_blog/script/rails (E<br/> rrno::ENOENT)<br/>

    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)>'<br/>

    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>'

The same problem occurs with ruby-1.8.7 :
ruby 1.8.7 (2010-01-10 revision 249) [i386-mingw32]

I'm running on Windows XP SP2.

Reported by E. Rider · February 8th, 2010 @ 08:14 AM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. E. Rider
    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>'
    

    February 8th, 2010 @ 06:11 PM

  2. Fredrik Henne
    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.

    February 8th, 2010 @ 08:47 PM

  3. Fredrik Henne
  4. E. Rider
    E. Rider

    Thanks for the link to the other ticket.
    This ticket can be closed.

    February 9th, 2010 @ 11:18 AM

  5. José Valim
    José Valim
    • State changed from new to duplicate

    February 21st, 2010 @ 07:32 PM