gpt4 book ai didi

freetds - 通过 gem install tiny_tds 在 OSX 10.6 上安装 TinyTDS 时出错

转载 作者:行者123 更新时间:2023-12-02 16:52:11 25 4
gpt4 key购买 nike

我一直在尝试在 OSX 10.6 的 Macbook 上安装 TinyTDS gem。我成功安装了免费 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 库的问题,而我似乎正在超越这个问题。

有什么我可能忽略的建议或引用吗?提前致谢。

最佳答案

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

关于freetds - 通过 gem install tiny_tds 在 OSX 10.6 上安装 TinyTDS 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12043003/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com