sudo apt-get install php7.0-dev
Fornece /usr/include/php/20151012/Zend/zend_smart_str.h
Estou tentando instalar o oci8 usando o comando "pecl install oci8", mas recebendo um erro como -
fatal error: zend_smart_str.h: No such file or directory
#include "zend_smart_str.h"
a seguir estão os detalhes do meu sistema - 1.ubuntu 14.04 2.php 7.0.17-2 + deb.sury.org ~ fiel + 1
passos que segui -
faça download de instantclient-basic-linux-12.2.0.1.0.zip
baixe instantclient-sdk-linux.x64-12.2.0.1.0.zip
Outout -
/bin/bash /tmp/oci8-2.1.4/libtool --mode=compile cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -o oci8.lo
libtool: compile: cc -I. -I/tmp/oci8-2.1.4 -DPHP_ATOM_INC -I/tmp/oci8-2.1.4/include -I/tmp/oci8-2.1.4/main -I/tmp/oci8-2.1.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/opt/oracle/instantclient_12_2/sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/oci8-2.1.4/oci8.c -fPIC -DPIC -o .libs/oci8.o
/tmp/oci8-2.1.4/oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory
#include "zend_smart_str.h"
^
compilation terminated.
make: *** [oci8.lo] Error 1
Por favor ajude !! Muito obrigado.
sudo apt-get install php7.0-dev
Fornece /usr/include/php/20151012/Zend/zend_smart_str.h