The specified module could not be found

来源:互联网 发布:淘宝店铺装修毕业设计 编辑:程序博客网 时间:2024/05/22 06:36
这个问题一般是找不到路径,解决办法:
1. 把要require的东西的dll文件加到PATH里面;
2. 把要require的东西的dll或者def放到ruby安装路径的bin里面(c:/ruby200/bin);
3. 有可能装的版本不对(装了个preview之类的版本),uninstall掉,然后重新装一个正常的版本;
4. 我自己遇到的这个问题,最根本的原因是我装了jruby,然后运行的脚本的时候都是jruby代替我原来的ruby来运行的。然后当时装wxruby的时候就是jruby这个东西装的,装了一个jruby自己运行不了的版本,搞得wxruby就一直不能正常运行。 解决方法:在PATH中去掉jruby的path,然后不要运行jruby,这个时候把wxruby卸载掉,重新装,然后就好了。

..Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - ..Ruby200/lib/ruby/gems/2.0.0/gems/wxruby-2.0.1-x86-mingw32/lib/wxruby2.so (LoadError)
        from ../Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from ../Ruby200/lib/ruby/gems/2.0.0/gems/wxruby-2.0.1-x86-mingw32/lib/wx.rb:12:in `<top (required)>'
        from ../Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from ../Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from ../Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from UI.rb:2:in `<main>'
0 0
原创粉丝点击