Adam Harte
Adam Harte

Reputation: 10500

"msvcrt-ruby18.dll was not found" with Ruby

When I try to run even simple rails commands such as:

rails -h

I get a popup error after a few seconds that says:

ruby.exe - Unable To Locate Component

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

I am running:

Is there a way I can test what is making this error? Does anyone know what it could mean?

I have found that in my ruby19/bin folder there is msvcrt-ruby191.dll but there is no msvcrt-ruby18.dll anywhere. Why would it be looking for this anyway if I'm using ruby 1.9?

Upvotes: 14

Views: 9783

Answers (5)

cloverink
cloverink

Reputation: 588

To solved msvcrt-ruby.dll error

Install DevKit ( https://github.com/oneclick/rubyinstaller/wiki/Development-Kit )

> gem uninstall json
> gem install json

Upvotes: 0

Charles Roper
Charles Roper

Reputation: 20625

The current release version 1.1.5 of Mongrel is incompatible with Ruby 1.9 and throws this error when it is run. It's easy to solve - just make sure Rubygems is up-to-date:

gem update --system

Then install the new pre-release version of Mongrel:

gem install mongrel --pre

Alternatively, if this isn't caused by Mongrel, you can try installing the DevKit, then try this:

gem install *gemname* --platform=ruby

This forces compilation of the extension from source using DevKit and works with most of the major gems I've tried.

Upvotes: 16

rogerdpack
rogerdpack

Reputation: 66711

you got the binary version of the gem, which only includes binaries for 1.8 try gem install mongrel --platform=ruby --pre

Upvotes: 0

Preston Marshall
Preston Marshall

Reputation: 1195

JRuby might work better for you. Either way, trying to use Ruby on Windows will leave a bad taste in your mouth. Either get a VM with Linux to work with it, or pay $10/mo for a VPS where you can play.

Upvotes: 0

Wasim
Wasim

Reputation: 1

Ruby 1.9.1 was running well on my Windows XP PC, but I've got this error message after installing mongrel. Unfortunately, mongrel has no update for Ruby 1.9.1 yet. Perhaps, for this reason, it generates this error on my PC.

Upvotes: 0

Related Questions