Failing to bundle install tiny_tds on Mac OS X 10.8 with Homebrew FreeTds

前端 未结 6 1307
野的像风
野的像风 2021-02-13 19:32

MY QUESTION
What are some surefire steps I can take to 100% get this working? I would need real instructions, not one liner answers or vague conceptual desc

6条回答
  •  感情败类
    2021-02-13 20:25

    What worked for me was mr.ruh.roh's gem building options above, reproduced here:

    gem install tiny_tds -- --with-freetds-include=/usr/local/include   
        --with-freetds-lib=/usr/local/lib
        --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include
        --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
    

    in one line. That gem install installs the gem, but the bundle still failed, even though the gem had been built and installed. Adding those options for bundler, however, worked.

    bundle config build.tiny_tds -- --with-freetds-include=/usr/local/include 
      --with-freetds-lib=/usr/local/lib 
      --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include 
      --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
    

    Again, in one line. With that bundler config set, bundle install worked.

    Note that I had already run:

    brew install freetds
    brew install libiconv
    

    This worked for me on Feb 20, 2015 on OS X 10.9.5 with Xcode 6.1.1 installed

提交回复
热议问题