This project is archived and is in readonly mode.

#3898 ✓duplicate
E. Rider

Rails 3.0 beta does not work on Windows

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

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.

Comments and changes to this ticket

  • E. Rider

    E. Rider February 8th, 2010 @ 06:11 PM

    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

    Fredrik Henne February 8th, 2010 @ 08:47 PM

    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.

  • Fredrik Henne
  • E. Rider

    E. Rider February 9th, 2010 @ 11:18 AM

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

  • José Valim

    José Valim February 21st, 2010 @ 07:32 PM

    • State changed from “new” to “duplicate”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages