Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MacOS install PHP Sqlsrv driver steps

Install build tools:

brew install autoconf automake libtool

Then install PECL:

curl -O
sudo php -d detect_unicode=0 go-pear.phar

Install sqlsrv driver

sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv

If you get make Failed error, install unixodbc first.

brew install unixodbc


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.