我一直在尝试在 OSX 10.6 的 Macbook 上安装 TinyTDS gem。我成功安装了免费 TDS——通过以下方式确认它可以正常工作:
tsql -H SERVER -p 1433 -U username.
我得到的错误宝石安装tiny_tds is:
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 库的问题,我似乎正在超越这个问题。
我可能忽略了任何建议或参考吗?提前致谢。
Ubuntu 14.04 上的相同问题已解决:
sudo apt-get install freetds-dev
gem install tiny_tds
日志输出:
Building native extensions. This could take a while...
/home/david/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /mnt/datapart/david in PATH, mode 040777
Successfully installed tiny_tds-0.6.1
Parsing documentation for tiny_tds-0.6.1
Installing ri documentation for tiny_tds-0.6.1
Done installing documentation for tiny_tds after 0 seconds
1 gem installed
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)