0

它看起来像一个频繁的错误,但2天后,我仍然没有找到这个问题的明确解决方案。

我从 RubyInstaller for Windows 安装了 Ruby 2.0.0-p451 (x64) 和 DevKit (DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe)。Ruby -v 返回:

ruby 2.0.0p451 (2014-02-24) [x64-mingw32]

现在,我运行 gem install tiny_tds,它返回:

E:\>gem install tiny_tds
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.

E:/Ruby200/bin/ruby.exe extconf.rb
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

实际上,我系统上唯一的 libiconv 是 E:\Ruby200\bin\libiconv-2.dll

我尝试了所有我能找到的方法,但没有成功,但我确信对此有一个聪明的答案。你能帮我找到吗?

非常感谢,

此致,

弗雷德

4

0 回答 0