虽然我正在安装php sqlsrv扩展名,但是却出现以下错误
In file included from /usr/include/sql.h:19:0,
from /tmp/pear/temp/pdo_sqlsrv/shared/xplat.h:30,
from /tmp/pear/temp/pdo_sqlsrv/shared/typedefs_for_linux.h:23,
from /tmp/pear/temp/pdo_sqlsrv/shared/xplat_winnls.h:24,
from /tmp/pear/temp/pdo_sqlsrv/shared/FormattedPrint.h:24,
from /tmp/pear/temp/pdo_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:216: recipe for target 'shared/FormattedPrint.lo' failed
make: *** [shared/FormattedPrint.lo] Error 1
ERROR: `make' failed
我点击以下链接进行安装
我何时sudo pecl install sqlsrv
使用此命令,然后我到达了上面。
我试图解决什么问题?
sudo apt-get install unixodbc-dev
命令。我使用Ubuntu 18.04和我的PHP版本7.2 有人可以帮我解决这个问题吗?