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

前端 未结 6 2301
情歌与酒
情歌与酒 2021-02-13 19:40

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:16

    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

提交回复
热议问题