Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6243 (reopened defect)

Opened 3 years ago

Last modified 3 years ago

freeze option in rails generator fails

Reported by: francisoud Assigned to: David
Priority: high Milestone: 2.x
Component: ActiveSupport Version: 1.2.3
Severity: normal Keywords: freeze
Cc: bitsweat

Description

creating a rails application from scratch under Windows XP:

C:\developpement\workspaces\workspaceRuby>rails my_project --database=mysql --freeze
      create
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  components
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/mocks/development
      create  test/mocks/test
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  config/database.yml
      create  config/routes.rb
      create  public/.htaccess
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/breakpointer
      create  script/console
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/process/reaper
      create  script/process/spawner
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``': Exec format error - rake rails:freeze:gem
s (Errno::ENOEXEC)
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/bin/rails:19
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/bin/rails:19:in `chdir'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/bin/rails:19
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
        from c:/ruby/bin/rails:18
C:\developpement\workspaces\workspaceRuby\my_project>ruby script/about
About your application's environment
Ruby version                 1.8.2 (i386-mswin32)
RubyGems version             0.8.10
Rails version                1.1.6
Active Record version        1.14.4
Action Pack version          1.12.5
Action Web Service version   1.1.6
Action Mailer version        1.2.5
Active Support version       1.3.1
Application root             C:/developpement/workspaces/workspaceRuby/my_project
Environment                  development
Database adapter             mysql

Change History

10/09/06 20:35:54 changed by bitsweat

  • cc set to bitsweat.

Any progress troubleshooting this? I thought the whole point of the agnostics methods were to work on Windows also.

11/02/06 16:48:49 changed by francisoud

  • status changed from new to closed.
  • resolution set to wontfix.

Changing ruby version solved this issue.

Now using:

>ruby --version
ruby 1.8.5 (2006-08-25) [i386-mswin32]

03/30/07 12:54:49 changed by JasonRoelofs

  • status changed from closed to reopened.
  • version changed from 1.1.6 to 1.2.3.
  • resolution deleted.
  • severity changed from blocker to normal.

I'm also having this same problem, but with more up-to-date system (Win XP Pro):

Ruby version                 1.8.6 (i386-mswin32)
RubyGems version             0.9.2
Rails version                1.2.3
Active Record version        1.15.3
Action Pack version          1.13.3
Action Web Service version   1.2.3
Action Mailer version        1.3.3
Active Support version       1.4.2
Edge Rails revision          unknown
Application root             C:/Development/DefaultRailsSite
Environment                  development
Database adapter             mysql