我安装了 Yosemite OSX 10.10 和 XCode 6.1。
我得到了安装 xCode 命令工具的建议,以允许我安装 libiconv。
然后 brew install libiconv。
然后brew链接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