我正在尝试在旧的Linux服务器上设置OCI8。在服务器上设置了PHP 5.6,我在关注this tutorial-
但是我无法通过此步骤sudo pecl install oci8-2.0.10 我总是收到错误消息。试图使用所有给定的解决方案进行搜索和修复,但没有一个对我有用。
错误:
running: make
/bin/bash /tmp/pear/temp/pear-build-root6D1HIg/oci8-2.0.10/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root6D1HIg/oci8-2.0.10/include -I/tmp/pear/temp/pear-build-root6D1HIg/oci8-2.0.10/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/oracle/instantclient_12_1/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo
libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root6D1HIg/oci8-2.0.10/include -I/tmp/pear/temp/pear-build-root6D1HIg/oci8-2.0.10/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/oracle/instantclient_12_1/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o
/tmp/pear/temp/oci8/oci8.c:36:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
compilation terminated.
Makefile:196: recipe for target 'oci8.lo' failed
make: *** [oci8.lo] Error 1
ERROR: `make' failed