How to fix the ' Msvcrt-ruby18.dll is missing from your computer ' error message in Ruby on Rails

Source: Internet
Author: User
Tags ruby on rails

Here's how to fix this annoying Ruby on Rails popup message: "The program can ' t-start because Msvcrt-ruby18.dll is missing From your computer. Try reinstalling to fix this problem. "

This is fix applies if you are using cucumber on Windows.

It turns out the ' error message ' is related to the JSON gem, that Cucumber depends. The details and solution are buried in Thisthread.

To fix it, your just have to run:

Gem Uninstall JSON

Followed by:

Gem Install JSON--platform=ruby

Notes:
You are need to have Devkit installed for this Fix:https://github.com/oneclick/rubyinstaller/wiki/development-kit

If you have the error when installing the new JSON gem, make sure a rails server or console isn ' t running in the background.

The offending version of JSON for me is 1.4.6-x86-mingw32, so you need to uninstall and install that Version:gem install JSON--version=1.4.6--platform=ruby

If You are install new gems after your make this fix, the error message would pop-up again, so and ll have to Uninstall/install The JSON gem again. If anyone knows a way around this, please let me know.

Anyway, I hope this fix is helpful, which error was driving me nuts!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.