Monday, 8 October 2018

PDO DBLIB Driver for MS SQL Server : Cannot find php_pdo_driver.h

I'm following the tutorial on the link below to compile PDO's DBLIB driver in my Mac Os Mojave.

https://github.com/BellevueCollege/public-docs/blob/master/PHP/configure-mssql-pdodblib-mac.md

Problem is, when i run the code below :

$ cd php-7.2.9/ext/pdo_dblib
$ phpize
$ ./configure --with-php-config=/usr/bin/php-config --with-pdo-dblib=/usr/local/
$ make
$ sudo cp modules/pdo_dblib.so /usr/lib/php/extensions/no-debug-non-zts-20121212

Specifically on this command :

$ ./configure --with-php-config=/usr/bin/php-config --with-pdo-dblib=/usr/local/

I get this error :

configure: error: Cannot find php_pdo_driver.h.

Any ideas please ? I've been trying for the last 2 hours : /

Thanks



from PDO DBLIB Driver for MS SQL Server : Cannot find php_pdo_driver.h

No comments:

Post a Comment