Error installing tiny_tds on OSX 10.10 Yosemite

Internet, I have no idea what to do. After upgrading to Yosemite, I cannot install 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.
-----

      

You can help?

+3


source to share


1 answer


I have Yosemite OSX 10.10 and XCode 6.1 installed.

I got suggestions for installing the xCode command tools so that I can install libiconv.

Then brew install libiconv.

Then brew link libiconv.

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

      

Then I did:

$ 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. 

      

So what I had to do:



$ brew tap homebrew/dupes

      

Then I did:

$ 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 

      

This led me to my original "libiconv is missing" error when trying to install tiny_tds. I have another error: "freetds is missing"

$ brew install freetds 

      

Finally:

$ 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

      

+7


source







All Articles