# Facing problem while running db migrate

**URL:** <https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065>\
**Category:** Rails\
**Created:** [April 8, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065 "2009-04-08T19:44:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![darshana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@darshana](https://www.ruby-forum.com/u/darshana)\
**Post date:** [April 8, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065/1 "2009-04-08T19:44:17Z")

</div>

I have ruby 1.8.6 with rubygems support and rails for windows.

when i am running command rake db:migrate from command promt, i am  
getting error:

C:\ruby\bin\ruby.exe: No such file or directory – C:/ruby/bin/rake  
(LoadError)

but c:\ruby\bin\ruby.exe exists.

I’m not sure what’s happening here.

Any help would be helpful.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![darshana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@darshana](https://www.ruby-forum.com/u/darshana)\
**Post date:** [April 8, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065/2 "2009-04-08T20:32:45Z")

</div>

On Apr 8, 6:44 pm, Darshana G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I have ruby 1.8.6 with rubygems support and rails for windows.
> 
> when i am running command rake db:migrate from command promt, i am  
> getting error:
> 
> C:\ruby\bin\ruby.exe: No such file or directory – C:/ruby/bin/rake  
> (LoadError)
> 
> but c:\ruby\bin\ruby.exe exists.

but does c:\ruby\bin\rake exist ?

Fred

---

<div class="post-metadata">

**Author:** ![darshana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@darshana](https://www.ruby-forum.com/u/darshana)\
**Post date:** [April 9, 2009, 7:52am UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065/3 "2009-04-09T07:52:34Z")

</div>

Yes, c:\ruby\bin\rake exist ?

There are two rake files:

1. rake file of type Windows Command Script
2. rake file of type Windows Batch File

Is this creating a problem??

Darshana

Frederick C. wrote:

> On Apr 8, 6:44ï¿½pm, Darshana G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > I have ruby 1.8.6 with rubygems support and rails for windows.
> > 
> > when i am running command rake db:migrate from command promt, i am  
> > getting error:
> > 
> > C:\ruby\bin\ruby.exe: No such file or directory – C:/ruby/bin/rake  
> > (LoadError)
> > 
> > but c:\ruby\bin\ruby.exe exists.
> 
> but does c:\ruby\bin\rake exist ?
> 
> Fred

---

<div class="post-metadata">

**Author:** ![darshana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@darshana](https://www.ruby-forum.com/u/darshana)\
**Post date:** [April 9, 2009, 10:51am UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065/4 "2009-04-09T10:51:34Z")

</div>

Darshana G. wrote:

> Darshana G. wrote:
> 
> > Yes, c:\ruby\bin\rake exist…  
> > There are two rake files:
> > 
> > 1. rake file of type Windows Command Script
> > 2. rake file of type Windows Batch File
> > 
> > Is this creating a problem?  
> > Anybody know’s how to solve this error?  
> > Its urgent!!!
> > 
> > Darshana  
> > Uninstall the ruby an reinstall the latest version  
> > There might be the problem in the file my be currepetd…

---

<div class="post-metadata">

**Author:** ![darshana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@darshana](https://www.ruby-forum.com/u/darshana)\
**Post date:** [April 9, 2009, 9:22am UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065/5 "2009-04-09T09:22:24Z")

</div>

Darshana G. wrote:

> Yes, c:\ruby\bin\rake exist…  
> There are two rake files:
> 
> 1. rake file of type Windows Command Script
> 2. rake file of type Windows Batch File
> 
> Is this creating a problem?  
> Anybody know’s how to solve this error?  
> Its urgent!!!
> 
> Darshana
