gpt4 book ai didi

ruby - 在 OSX 10.10 Yosemite 上安装 tiny_tds 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 07:47:54 25 4
gpt4 key购买 nike

互联网,我不知道该做什么。升级到 Yosemite 后我无法安装 tiny_tds

$ 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/jpolley/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing.
-----

你能帮忙吗?

最佳答案

我安装了 Yosemite OSX 10.10 和 XCode 6.1。

我得到了安装 xCode 命令工具的建议,以允许我安装 libiconv。

然后brew install libiconv。

然后brew link libiconv。

$ xcode-select --install 
xcode-select: error: command line tools are already installed,
use "Software Update" to install updates

然后我做了:

$ brew install libiconv 
Error: No available formula for libiconv Apple distributes libiconv with OS X,
you can find it in /usr/lib. Some build scripts fail to detect it correctly,
please check existing formulae for solutions.

所以我必须这样做:

$ brew tap homebrew/dupes

然后我做了:

$ brew link libiconv 
Warning: libiconv is keg-only and must be linked with --force
Note that doing so can interfere with building software.

$ brew link libiconv --force
Linking /usr/local/Cellar/libiconv/1.14... 16 symlinks created

这让我在尝试安装 tiny_tds 时克服了最初的错误“libiconv is missing”。我现在遇到了一个不同的错误:“freetds is missing”

$ brew install freetds 

最后:

$ gem install tiny_tds 
Building native extensions. This could take a while...
Successfully installed tiny_tds-0.6.2 Parsing documentation for tiny_tds-0.6.2
Installing ri documentation for tiny_tds-0.6.2
Done installing documentation for tiny_tds after 0 seconds 1 gem installed

关于ruby - 在 OSX 10.10 Yosemite 上安装 tiny_tds 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26613673/

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