【问题标题】:Problems installing unf_ext on Win7x64在 Win7x64 上安装 unf_ext 时出现问题
【发布时间】:2013-04-28 02:06:18
【问题描述】:

我知道我之前在相同的硬件/操作系统上可以使用此功能,但今天我被卡住了。

对于 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

这是来自 ruby​​installer.org 的 rubies 以及推荐的 devkit 版本。

我也对两者都做了gem update --system。

谁能想到我错过了什么?

【问题讨论】:

    标签: ruby windows rubygems gem


    【解决方案1】:

    我在 1.9.3 中解决了这个问题 - 我回滚到 unf_ext 0.0.5 的第一直觉是正确的,我只是忘记先卸载 0.0.6

    【讨论】:

      猜你喜欢
      • 2015-04-23
      • 2012-07-10
      • 2014-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多