我一直在尝试在装有 OSX 10.6 的 Macbook 上安装 TinyTDS gem。我成功安装了 Free TDS - 确认它可以通过以下方式工作:
tsql -H SERVER -p 1433 -U username.
我从gem install tiny_tds得到的错误是:
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.
/Users/jason/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
checking for sybfront.h... yes
checking for sybdb.h... yes
checking for tdsdbopen() in -lsybdb... no
-----
freetds 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.
我试过指定 TDS 库并包含目录(/usr/local/lib 和 /usr/local/include),但没有运气。我尝试过手动以及通过自制软件从源代码重新安装 FreeTDS,但这没有任何区别。
我已经看到发布了一些类似的问题,但它们似乎引用了我似乎正在超越的定位 iconv 库的问题。
我可能忽略了任何建议或参考资料?提前致谢。