erro fatal: zend_smart_str.h: Nenhum arquivo ou diretório

0

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 -

  1. faça download de instantclient-basic-linux-12.2.0.1.0.zip

  2. baixe instantclient-sdk-linux.x64-12.2.0.1.0.zip

  3. crie dir em / opt / oracle
  4. extrair os arquivos zip
  5. execute o comando pecl install oci8

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.

    
por Sachin Vairagi 19.04.2017 / 11:44

1 resposta

0

% bl0ck_qu0te%

sudo apt-get install php7.0-dev

Fornece /usr/include/php/20151012/Zend/zend_smart_str.h

    
por Knud Larsen 19.04.2017 / 23:32