Cannot install tiny_tds on os.x 10.9.4

耗尽温柔 提交于 2019-12-12 01:57:54

问题


I'm trying to install tiny_tds on a mac running OS.X Mavericks but I receive the following error:

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 ***

I'm using the following command to install 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

I have looked into iconv.h and there is no iconv_open() method.

By the way, I'm using ruby 2.0.0p451


回答1:


Problem solved after updating to ruby 2.1.2



来源:https://stackoverflow.com/questions/24931638/cannot-install-tiny-tds-on-os-x-10-9-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!