我知道我之前在相同的硬件/操作系统上工作但今天我被卡住了。
对于1.9.3我得到:
$ gem install unf_ext --version=0.0.5
Successfully installed unf_ext-0.0.5-x86-mingw32
Installing ri documentation for unf_ext-0.0.5-x86-mingw32
1 gem installed
User@Jake ~
$ ruby -e "require 'unf_ext'"
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- unf_ext.so (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/unf_ext-0.0.6-x86-mingw32/lib/unf_ext.rb:4:in `rescue in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/unf_ext-0.0.6-x86-mingw32/lib/unf_ext.rb:1:in `<top (required)>'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:35:in `require'
from -e:1:in `<main>'
对于2.0.0我得到:
$ gem install unf_ext
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/unf_ext.so, skipping
这是来自rubyinstaller.org的红宝石以及推荐的devkit版本。
我也在两者上完成了gem update --system
。
有人能想到我错过的东西吗?
答案 0 :(得分:0)
我为1.9.3解决了这个问题 - 我第一次回到unf_ext 0.0.5的本能是正确的我只是忘了先卸载0.0.6