Kamis, 03 Januari 2019

How to fix oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory' error

  Tidak ada komentar
How to fix oci8.c:36:28: fatal error: zend_smart_str.h: No such file or directory' error
[[email protected] oci8-2.2.0]# make
/bin/sh /root/oci8-2.2.0/libtool --mode=compile cc  -I. -I/root/oci8-2.2.0 -DPHP_ATOM_INC -I/root/oci8-2.2.0/include -I/root/oci8-2.2.0/main -I/root/oci8-2.2.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-2.2.0/oci8.c -o oci8.lo
libtool: compile:  cc -I. -I/root/oci8-2.2.0 -DPHP_ATOM_INC -I/root/oci8-2.2.0/include -I/root/oci8-2.2.0/main -I/root/oci8-2.2.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-2.2.0/oci8.c  -fPIC -DPIC -o .libs/oci8.o
/root/oci8-2.2.0/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
[[email protected] oci8-2.2.0]#

Edit the file from Make Install
[[email protected] oci8-1.4.10]# make
/bin/sh /root/oci8-1.4.10/libtool --mode=compile cc  -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-1.4.10/oci8.c -o oci8.lo
libtool: compile:  cc -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-1.4.10/oci8.c  -fPIC -DPIC -o .libs/oci8.o
/bin/sh /root/oci8-1.4.10/libtool --mode=compile cc  -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-1.4.10/oci8_lob.c -o oci8_lob.lo
libtool: compile:  cc -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-1.4.10/oci8_lob.c  -fPIC -DPIC -o .libs/oci8_lob.o
/bin/sh /root/oci8-1.4.10/libtool --mode=compile cc  -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-1.4.10/oci8_statement.c -o oci8_statement.lo
libtool: compile:  cc -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-1.4.10/oci8_statement.c  -fPIC -DPIC -o .libs/oci8_statement.o
/bin/sh /root/oci8-1.4.10/libtool --mode=compile cc  -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-1.4.10/oci8_collection.c -o oci8_collection.lo
libtool: compile:  cc -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-1.4.10/oci8_collection.c  -fPIC -DPIC -o .libs/oci8_collection.o
/bin/sh /root/oci8-1.4.10/libtool --mode=compile cc  -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /root/oci8-1.4.10/oci8_interface.c -o oci8_interface.lo
libtool: compile:  cc -I. -I/root/oci8-1.4.10 -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /root/oci8-1.4.10/oci8_interface.c  -fPIC -DPIC -o .libs/oci8_interface.o
/bin/sh /root/oci8-1.4.10/libtool --mode=link cc -DPHP_ATOM_INC -I/root/oci8-1.4.10/include -I/root/oci8-1.4.10/main -I/root/oci8-1.4.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64  -DHAVE_CONFIG_H  -g -O2   -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/oci8-1.4.10/modules  oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/usr/lib/oracle/12.1/client64/lib/ -L/usr/lib/oracle/12.1/client64/lib/ -lclntsh
libtool: link: cc -shared  -fPIC -DPIC  .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o   -L/usr/lib/oracle/12.1/client64/lib/ -lclntsh  -O2 -Wl,-rpath -Wl,/usr/lib/oracle/12.1/client64/lib/   -Wl,-soname -Wl,oci8.so -o .libs/oci8.so
libtool: link: ( cd ".libs" && rm -f "oci8.la" && ln -s "../oci8.la" "oci8.la" )
/bin/sh /root/oci8-1.4.10/libtool --mode=install cp ./oci8.la /root/oci8-1.4.10/modules
libtool: install: cp ./.libs/oci8.so /root/oci8-1.4.10/modules/oci8.so
libtool: install: cp ./.libs/oci8.lai /root/oci8-1.4.10/modules/oci8.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /root/oci8-1.4.10/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /root/oci8-1.4.10/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

[[email protected] oci8-1.4.10]#


Edit the file from Make Install

Tidak ada komentar :

Posting Komentar