Module Installers - ERROR: `make' failed

Rafael Gomes

Member
Feb 7, 2017
5
2
3
Florianópolis, Brazil
cPanel Access Level
Root Administrator
Hello pals,

I'm trying to install pdo_sqlsrv module in my server by using "Module Installers" options, but I'm facing some issues on it, here is the output from Module Installers:

running: make
/bin/sh /root/tmp/pear/pear-build-rootAc7ku3/pdo_sqlsrv-5.6.1/libtool --mode=compile g++ -I/opt/cpanel/ea-php71/root/usr/include/php/ext -std=c++11 -I. -I/root/tmp/pear/pdo_sqlsrv -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootAc7ku3/pdo_sqlsrv-5.6.1/include -I/root/tmp/pear/pear-build-rootAc7ku3/pdo_sqlsrv-5.6.1/main -I/root/tmp/pear/pdo_sqlsrv -I/opt/cpanel/ea-php71/root/usr/include/php -I/opt/cpanel/ea-php71/root/usr/include/php/main -I/opt/cpanel/ea-php71/root/usr/include/php/TSRM -I/opt/cpanel/ea-php71/root/usr/include/php/Zend -I/opt/cpanel/ea-php71/root/usr/include/php/ext -I/opt/cpanel/ea-php71/root/usr/include/php/ext/date/lib -I/root/tmp/pear/pdo_sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/tmp/pear/pdo_sqlsrv/pdo_dbh.cpp -o pdo_dbh.lo
libtool: compile: g++ -I/opt/cpanel/ea-php71/root/usr/include/php/ext -std=c++11 -I. -I/root/tmp/pear/pdo_sqlsrv -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootAc7ku3/pdo_sqlsrv-5.6.1/include -I/root/tmp/pear/pear-build-rootAc7ku3/pdo_sqlsrv-5.6.1/main -I/root/tmp/pear/pdo_sqlsrv -I/opt/cpanel/ea-php71/root/usr/include/php -I/opt/cpanel/ea-php71/root/usr/include/php/main -I/opt/cpanel/ea-php71/root/usr/include/php/TSRM -I/opt/cpanel/ea-php71/root/usr/include/php/Zend -I/opt/cpanel/ea-php71/root/usr/include/php/ext -I/opt/cpanel/ea-php71/root/usr/include/php/ext/date/lib -I/root/tmp/pear/pdo_sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/tmp/pear/pdo_sqlsrv/pdo_dbh.cpp -fPIC -DPIC -o .libs/pdo_dbh.o
In file included from /root/tmp/pear/pdo_sqlsrv/shared/typedefs_for_linux.h:23:0,
from /root/tmp/pear/pdo_sqlsrv/shared/xplat_winnls.h:24,
from /root/tmp/pear/pdo_sqlsrv/shared/FormattedPrint.h:24,
from /root/tmp/pear/pdo_sqlsrv/shared/core_sqlsrv.h:41,
from /root/tmp/pear/pdo_sqlsrv/php_pdo_sqlsrv_int.h:23,
from /root/tmp/pear/pdo_sqlsrv/pdo_dbh.cpp:24:
/root/tmp/pear/pdo_sqlsrv/shared/xplat.h:30:17: fatal error: sql.h: No such file or directory
#include
^
compilation terminated.
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed

Have any of you guys seen an error like this before? I'm using a CentOS Linux 7.6, and my GCC compiler version is 4.8.5.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @Rafael Gomes,

Can you share some more information about what's leading you to install this particular module? The corresponding PECL module is only compatible with PHP running on Windows as noted in the module's documentation:

The PDO_SQLSRV extension is only compatible with PHP running on Windows. For Linux, see ODBC and » Microsoft's SQL Server ODBC Driver for Linux.
The ODBC EA4 RPM is a potential alternative depending on the needs of the script. The following command will install this RPM (PHP 7.2 is the version in the example below):

Code:
yum install ea-php72-php-odbc
Thank you.