Jamal Abdul Nasir
Jamal Abdul Nasir

Reputation: 2667

RUBY ON RAILS - "msvcrt-ruby18.dll was not found" with Ruby

i am using: windows 7 rails 3.0

whenever i try to run rake db:migrate. i get the following error in popup...

This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.

need help here.. thnx..

Upvotes: 1

Views: 880

Answers (3)

crazycrv
crazycrv

Reputation: 2445

Read this one if this problem appears on starting the mongrel using "mongrel_rails start"

Install the new pre-release version of Mongrel:

gem install mongrel --pre

Also add "gem mongrel" to your Gemfile and run the application using "rails s"

Upvotes: 0

Jörg W Mittag
Jörg W Mittag

Reputation: 369594

msvcrt-ruby18.dll is the runtime library for MRI 1.8.x. Somehow, you installed a MRI C extension for which the author provides a pre-compiled binary, but with the wrong version information. That way, you ended up with a C extension that has been compiled for MRI 1.8.x, but you are actually using YARV 1.9.2-p0.

You need to find either a different version of the gem which provides a pre-compiled binary for your version of YARV, or you need to compile it yourself.

If you use the MinGW port of YARV, that's trivial: just install the DevKit and then re-install the offending gem with the --platform=ruby option, to force compilation.

Upvotes: 0

Jack
Jack

Reputation: 133629

Which version of ruby you are using?

If <= 1.8 then just add that dll to your path (you should have it somewhere).

If, instead, you are using ruby >= 1.9 then probably one of your gems that you installed has native compnents which haven't been updated for this version and still rely on older ruby dlls. You could try by compiling them natively (it will be hard under Win7) or search for an updated version somewhere.

Upvotes: 2

Related Questions