Skip to Main Content

Español

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Activando oci8 version 2.2.0 en OpenSuse Leap 15

185c6fe6-fa6f-4ccc-bbfc-97bcfbfa33b0Nov 16 2019 — edited Nov 16 2019

Buen día, instalando la librería en mención en mi servidor Open Suse Leap 15, replicando exactamente el entorno de mi cliente, está configurado como servidor WEB con LAMP, que el sistema tiene por defecto, por medio de YAST instalé  éstas librerias:

php7-fastcgi

php7-fpm

php7-ftp

php7-ldap

php7-openssl

php7-readline

php7-soap

php7-zip

php7-zlib

php7-mysql

con zypper instalé estas otras:

php7-devel

php7-pear

luego descargué los 4 rpm del instantclient  19.3 : basic, devel, tools y sqlplus

y los instalé en ese orden usando rpm -Uhv oracle-.......rpm

activé el soporte para PHP_DTRACE con el comando export PHP_DTRACE=yes

intenté instalar la librería oci8-2.2.0 con el comando : pecl install oci8.2.2.0

salieron errores que solucioné instalando las librerias system-sdt-devel, gcc y re2c, las instalé con zypper

ahora me dice que no encuentra la libreria oci.h, y ya verifiqué que si existe, modifiqué el LD_LIBRARY_PATH y PATH para que apunten a donde quedó instalada /usr/include/oracle/19.3/client64, sin embargo el error persiste.

Aquí el log de instalación que muestra la linea de comandos :

pecl install oci8-2.2.0

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update

downloading oci8-2.2.0.tgz ...

Starting to download oci8-2.2.0.tgz (196,449 bytes)

.........................................done: 196,449 bytes

11 source files, building

running: phpize

Configuring for:

PHP Api Version:         20170718

Zend Module Api No:      20170718

Zend Extension Api No:   320170718

Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :

building in /tmp/pear/temp/pear-build-rooteHRYHM/oci8-2.2.0

running: /tmp/pear/temp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8

configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for a sed that does not truncate output... /usr/bin/sed

checking for cc... cc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g... yes

checking for cc option to accept ISO C89... none needed

checking how to run the C preprocessor... cc -E

checking for icc... no

checking for suncc... no

checking whether cc understands -c and -o together... yes

checking for system library directory... lib

checking if compiler supports -R... no

checking if compiler supports -Wl,-rpath,... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for PHP prefix... /usr

checking for PHP includes... -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib

checking for PHP extension directory... /usr/lib64/php7/extensions

checking for PHP installed headers prefix... /usr/include/php7

checking if debug is enabled... no

checking if zts is enabled... no

checking for re2c... re2c

checking for re2c version... 1.0.3 (ok)

checking for gawk... gawk

checking for Oracle Database OCI8 support... yes, shared

checking PHP version... 7.2.5, ok

checking OCI8 DTrace support... yes

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking sys/sdt.h usability... yes

checking sys/sdt.h presence... yes

checking for sys/sdt.h... yes

checking size of long int... 8

checking checking if we're on a 64-bit platform... yes

checking Oracle ORACLE_HOME install directory... /usr/lib/oracle/19.3/client64

checking ORACLE_HOME library validity... lib

checking Oracle library version compatibility... 19.1

checking how to print strings... printf

checking for a sed that does not truncate output... (cached) /usr/bin/sed

checking for fgrep... /usr/bin/grep -F

checking for ld used by cc... /usr/x86_64-suse-linux/bin/ld

checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes

checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B

checking the name lister (/usr/bin/nm -B) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 1572864

checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop

checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop

checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r

checking for objdump... objdump

checking how to recognize dependent libraries... pass_all

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for ar... ar

checking for archiver @FILE support... @

checking for strip... strip

checking for ranlib... ranlib

checking for gawk... (cached) gawk

checking command to parse /usr/bin/nm -B output from cc object... ok

checking for sysroot... no

checking for a working dd... /usr/bin/dd

checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1

checking for mt... mt

checking if mt is a manifest tool... no

checking for dlfcn.h... yes

checking for objdir... .libs

checking if cc supports -fno-rtti -fno-exceptions... no

checking for cc option to produce PIC... -fPIC -DPIC

checking if cc PIC flag -fPIC -DPIC works... yes

checking if cc static flag -static works... no

checking if cc supports -c -o file.o... yes

checking if cc supports -c -o file.o... (cached) yes

checking whether the cc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

configure: creating ./config.status

config.status: creating config.h

config.status: executing libtool commands

running: make

CFLAGS="-g -O2" dtrace -h -C -s /tmp/pear/temp/oci8/oci8_dtrace.d -o oci8_dtrace_gen.h.bak && /usr/bin/sed -e 's,PHPOCI_,DTRACE_,g' oci8_dtrace_gen.h.bak > oci8_dtrace_gen.h

/bin/sh /tmp/pear/temp/pear-build-rooteHRYHM/oci8-2.2.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooteHRYHM/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-rooteHRYHM/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib  -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-rooteHRYHM/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-rooteHRYHM/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c  -fPIC -DPIC -o .libs/oci8.o

In file included from /tmp/pear/temp/oci8/oci8.c:49:0:

/tmp/pear/temp/oci8/php_oci8_int.h:58:10: fatal error: oci.h: No such file or directory

#include <oci.h>

          ^~~~~~~

compilation terminated.

make: *** [Makefile:219: oci8.lo] Error 1

ERROR: `make' failed

agradezco de antemano su ayuda

Comments
Post Details
Added on Nov 16 2019
1 comment
1,831 views