安装php mssql驱动程序时make失败

时间:2019-05-24 09:14:09

标签: php sql-server driver pecl

我正在按照此官方文档here

尝试为PHP安装mssql驱动程序

我的sudo pecl install sqlsrv的第一步最终遇到了这个错误,我似乎无法弄清楚:

In file included from /usr/include/sql.h:19:0,
                 from /tmp/pear/temp/sqlsrv/shared/xplat.h:30,
                 from /tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23,
                 from /tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24,
                 from /tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24,
                 from /tmp/pear/temp/sqlsrv/shared/FormattedPrint.cpp:23:
/usr/include/sqltypes.h:56:2: error: #error "Needs to know how big a long int is to continue!!!"
 #error "Needs to know how big a long int is to continue!!!"
  ^~~~~
Makefile:214: recipe for target 'shared/FormattedPrint.lo' failed
make: *** [shared/FormattedPrint.lo] Error 1
ERROR: `make' failed

请注意,该服务器已经全新安装了php和apache,并且工作正常。只有此驱动程序无法安装。

操作系统:Ubuntu 16.04

0 个答案:

没有答案