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!