Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:53:59+00:00 2026-06-15T23:53:59+00:00

I am working on the 2.0.2 rails application. Now when I execute the command

  • 0

I am working on the 2.0.2 rails application. Now when I execute the command from a windows pc with rake db:migate it gives Errno::ENOEXEC in SystemsController#index.

Is there any other way to execute the system commands from the rails application on windows pc?

Here is the error:

Errno::ENOEXEC in SystemsController#index

Exec format error - rake db:migrate

RAILS_ROOT: E:/RoR/ibt/InstantRails-2.0-win/rails_apps/config
Application Trace | Framework Trace | Full Trace

E:/RoR/ibt/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``' ``
E:/RoR/ibt/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'`
app/controllers/systems_controller.rb:24:in `index'

I am getting on ruby console:

irb(main):001:0> system('dir')
Volume in drive E has no label.
Volume Serial Number is 522C-BDB1

 Directory of E:\RoR\ibt\InstantRails-2.0-win\rails_apps\config

 11/29/2012  03:11 PM    <DIR>          .
 11/29/2012  03:11 PM    <DIR>          ..
 11/29/2012  02:41 PM    <DIR>          app
 11/29/2012  02:42 PM    <DIR>          config

 => true
 irb(main):002:0> system('rake db:migrate')
 => false
 irb(main):003:0>  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:54:00+00:00Added an answer on June 15, 2026 at 11:54 pm

    I have solved this issue by running the rake file from the the batch file where the rake is situated.

    irb(main):001:0> system('dir')
    Volume in drive E has no label.
    Volume Serial Number is 522C-BDB1
    
    Directory of E:\RoR\ibt\InstantRails-2.0-win\rails_apps\config
    
    11/29/2012  03:11 PM    <DIR>          .
    11/29/2012  03:11 PM    <DIR>          ..
    11/29/2012  02:41 PM    <DIR>          app
    11/29/2012  02:42 PM    <DIR>          config
    
    => true
    irb(main):002:0> system('rake db:migrate')
    => false
    

    In the controller file

    system("#{RAILS_ROOT}/../../ruby/bin/rake.bat db:migrate")
    

    Gives result

     == 99 AddFieldtoSystemAssoziations: migrating =================================
     == 99 AddFieldtoSystemAssoziations: migrated (0.0391s) ========================
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on deploying my first Rails application right now, and somewhere along the
I'm working on a web application right now using Rails and wanted to see
I'm working on a Rails application right now and the site currently has about
I'm working on rails application with postgres db.I have a table called merchant_review_votes where
I'm working on a Rails application where I have some a set of two
I am thinking of working on a Rails application that uses PostgreSQL. I have
I'm having working on a Rails application that is supposed to run on an
Background Currently, I am working on a Rails application. I have different products that
The Rails application I'm working on, has two central pieces: users and groups. A
I am working on JRuby on Rails Application having JRuby-1.6.7 and Rails 3.2.2 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.