无法在os.x 10.9.4上安装tiny_tds

时间:2014-07-24 10:49:13

标签: ruby macos freetds tiny-tds

我正在尝试在运行OS.X Mavericks的mac上安装tiny_tds但是我收到以下错误:

ERROR:  Error installing tiny_tds:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb gem install tiny_tds -- --without-iconvlib --with-freetds-lib=/usr/local/Cellar/freetds/0.91/lib --with-freetds-include=/usr/local/Cellar/freetds/0.91/include
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -lfalse... no
-----
libiconv is missing.
-----
*** extconf.rb failed ***

我正在使用以下命令安装tiny_tds:

sudo gem install tiny_tds -- --with-freetds-include=/usr/local/include --with-freetds-lib=/usr/local/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib

我调查了iconv.h并且没有iconv_open()方法。

顺便说一下,我正在使用ruby 2.0.0p451

1 个答案:

答案 0 :(得分:0)

更新到ruby 2.1.2后问题解决了