Closed DonikaV closed 8 months ago
got it work with
BUNDLE_BUILD__TINY_TDS="--with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib" bin/bundle install
For me this worked on MacBook Air (M1, 2020), macOS Big Sur 11.4, Ruby 3.0.1:
$ brew install freetds
$ gem install tiny_tds -- --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
This bundler configuration from https://github.com/rails-sqlserver/tiny_tds/issues/484#issuecomment-1208559626 worked for me:
bundle config build.tiny_tds --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
Fix has been merged with #545 (original PR: #531) and was released with 2.1.6. It should no longer be necessary to pass --with-freetds-include
or --with-freetds-lib
on Macs with Apple Silicon.
After i run bundle install i am getting this errors.
FreeTDS is installed by homebrew
Tried with this command gem install tiny_tds -- --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
Same issues.
This is in the logs