Core_rl_magick_.dll not found

I have installed Image_magick,rmagick and scruffy for creating graphs in
ruby application.
whenever i am trying to run the .rb file it is showing
core_rl_magick_.dll not found.

Then I uninstalled all the gems amd image magick and reinstalled and
re-started the system but it is of no use.

Please help.