Closed bemky closed 8 months ago
gem install tiny_tds -- --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
@vkalach that got me almost all the way there. I ran the following three commands to fully fix: brew install freetds sudo chown -R $(whoami) /Users/USERNAME/.rbenv/versions/VERSION NO./lib/ruby/gems/* gem install tiny_tds -- --with-freetds-include=/opt/homebrew/include --with-freetds-lib=/opt/homebrew/lib
@Peter-Oliver same here, I just have to run brew install freetds
and then gem install tiny_tds
Successfully installed tiny_tds-2.1.5
Check this pull request #531. It'll fix the problem for newer homebrew installations.
It adds the new homebrew path /opt/homebrew to be used for freetds lookup.
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.
Environment
Operating System ProductName: macOS ProductVersion: 11.4 BuildVersion: 20F71
TinyTDS Version and Information
FreeTDS Version
Description
When installing gem, I get the following error even though FreeTDS is installed
It looks like tiny_tds can't find freetds. FreeTDS is installed via homebrew in the default location where homebrew puts it. When I install gem with the following it installs correctly.
I'm not sure exactly how to fix, but can tiny_tds use $PATH to find freetds?