Cannot start with RubyMine

I have a problem with RubyMine 4.0.1 on Windows 7. Every time I run a ruby ​​script from RubyMine that contains a single line

require 'rmagick'

I get

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 fine. I tried changing startup configurations by changing environment variables, but nothing worked.

+5
source share
1 answer

It turned out that the problem was caused by an updated system PATHthat was not transferred to the RubyMine process. The new value PATHwas transferred only after the computer rebooted (logging out should also help).

Windows, , Process Explorer ( ) Rapid Environment Editor ( ).

, , - () - , /.


PATH, ImageMagick, DLL, RMagick2.so, RubyMine PATH IDE - DLL ImageMagick. RubyMine PATH, rmagick gem .

+5

All Articles