rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
605 stars 191 forks source link

Look for freetds in /opt/homebrew #531

Closed caleb closed 7 months ago

caleb commented 1 year ago

Homebrew recently changed the directory it installs into from /usr/local to /opt/homebrew. This change allows users to install tiny_tds on macOS.

fa11enangel commented 7 months ago

This will fix several open issues:

Until it is merged and released as a new version, you have to define /opt/homebrew as directory to look for freetds:

brew install freetds
gem install tiny_tds -- --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
andyundso commented 7 months ago

I made a new branch with the changes from this one, but also added testing on CircleCI to make sure compiling and requiring works for the folks on Apple Silicon (see #545). I'm going to close this PR.