# Rake db:migrate error

**URL:** <https://www.ruby-forum.com/t/rake-db-migrate-error/139521>\
**Category:** Rails\
**Created:** [June 4, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-error/139521 "2008-06-04T17:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![metaltree](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Post date:** [June 4, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-error/139521/1 "2008-06-04T17:57:25Z")

</div>

When I run rake db:migrate, I get the following error message. How to  
solve this?

C:\testror\depot\>rake db:migrate --trace  
(in C:/testror/depot)  
\*\* Invoke db:migrate (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute db:migrate  
rake aborted!  
182: operating system cannot run %1. - c:/ruby/lib/ruby/gem  
s/1.8/gems/ruby-postgres-0.7.1.2006.04.06-mswin32/./postgres.so  
c:/ruby/lib/ruby/gems/1.8/gems/ruby-postgres-0.7.1.2006.04.06-  
mswin32/./postgres  
.so  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependenci es.rb:496:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
dependenci  
es.rb:342:in `new_constants_in' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependenci es.rb:496:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
core\_ext/k  
ernel/requires.rb:7:in `require_library_or_gem' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ core_ext/k ernel/reporting.rb:11:in`silence\_warnings’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
core\_ext/k  
ernel/requires.rb:5:in `require_library_or_gem' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_a dapters/postgresql_adapter.rb:7:in`postgresql\_connection’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active\_record/  
connection\_a  
dapters/abstract/connection\_specification.rb:291:in `send' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_a dapters/abstract/connection_specification.rb:291:in`connection=’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active\_record/  
connection\_a  
dapters/abstract/connection\_specification.rb:259:in  
`retrieve_connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_a dapters/abstract/connection_specification.rb:78:in`connection’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active\_record/  
migration.rb  
:294:in `migrate' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in`each’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in`invoke\_with\_call\_c  
hain’  
c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in`invoke\_with\_call\_c  
hain’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in`invoke\_task’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in`each’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in`standard\_exceptio  
n\_handling’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in  
`top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in`run’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in  
`standard_exceptio n_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in`run’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31  
c:/ruby/bin/rake:19:in `load’  
c:/ruby/bin/rake:19

C:\testror\depot\>

---

<div class="post-metadata">

**Author:** ![metaltree](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Post date:** [June 4, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-error/139521/2 "2008-06-04T18:05:49Z")

</div>

On Wed, 2008-06-04 at 08:56 -0700, Metaltree wrote:

> 182: operating system cannot run %1. - c:/ruby/lib/ruby/gem  
> dependenci  
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
> dapters/abstract/connection\_specification.rb:291:in `connection=’  
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85  
> hain’  
> n\_handling’
> 
> C:\testror\depot\>

* * *

There were 2 answers to your same question yesterday

Craig

---

<div class="post-metadata">

**Author:** ![metaltree](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Post date:** [June 4, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-error/139521/3 "2008-06-04T18:18:20Z")

</div>

Sorry, please ignore that second post.
