Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7684381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:00:38+00:00 2026-05-31T19:00:38+00:00

I am having problem with RubyMine 4.0.1 on Windows 7. Every time i run

  • 0

I am having problem with RubyMine 4.0.1 on Windows 7.
Every time i run ruby script from RubyMine which contains the only line

require 'rmagick'

I recieve

LoadError: 126: The specified module could not be found.   - C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick2.so
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick.rb:11:in `<top (required)>'
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):1
    from C:/Ruby193/bin/irb:12:in `<main>'

But when I run the same script from cmd, everything works just fine.
I tried to change run configurations, adjusting environment variables, but nothing seemed to work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:00:39+00:00Added an answer on May 31, 2026 at 7:00 pm

    It turned out that the problem was caused by updated system PATH environment not passed to RubyMine process. New PATH value was passed only after machine reboot (logout should also help).

    To debug such kind of issues on Windows system it’s handy to use such tools like Process Explorer (allows to verify the actual process environment) and Rapid Environment Editor (allows to easily edit environment and detects errors in paths).

    Usually it’s enough to restart the process to get environment variable changes into account, but in case some custom launcher (explorer) is used, the new process may still inherit its environment and it’s required to restart the parent process as well, or logout/reboot.


    In this particular case the user has updated system PATH environment to include the ImageMagick directory that contains the DLLs required for RMagick2.so, however RubyMine process didn’t get the new value of PATH after IDE restart and was still using the value without ImageMagick DLLs. After system reboot RubyMine started to use the new PATH value and rmagick gem was able to find all the dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having problem to open form in new window, script is pulled from external service.
I'm having problem in the following line: rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman; it throws an exception
I'm having problem when running my Windows Forms program. In the program, I have
I'm having problem with Rails plugin attachment_fu . On every upload, I get validation
i'm having problem to deal with charset in ruby on rails app, specificially in
I having problem when I deploy an application on Windows Mobile Device .The device
I having problem with append() when the textbox is focus the second time. var
I am having problem with random number generation in c#. If I RUN this
I'm having problem with JavaScript debugger under project that uses dojo.require() to load JavaScript
I am having problem understanding Priority Inversion Snippet from the article: Consider there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.