Bug #72371 [Asn->Csd]: Problem installing oci8-2.0.11
| From: | sixd@php.net | Date: | Tue, 21 Jun 2016 07:55:54 +0000 |
| Subject: | Bug #72371 [Asn->Csd]: Problem installing oci8-2.0.11 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201768@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72371&edit=1
ID: 72371
Updated by: sixd@php.net
Reported by: miguel dot molina at statistik dot rlp dot de
Summary: Problem installing oci8-2.0.11
-Status: Assigned
+Status: Closed
Type: Bug
Package: OCI8 related
Operating System: OS X El Capitan 10.11.5
PHP Version: 5.6.19
Assigned To: sixd
Block user comment: N
Private report: N
New Comment:
These things happen. Thanks for taking time to report it and give feedback.
Previous Comments:
------------------------------------------------------------------------
[2016-06-20 09:38:31] miguel dot molina at statistik dot rlp dot de
Ok, I have to say I was in holidays a few days. And today I tried it again and it works. But I have
to explain something more.
I was trying to install it through Pecl installation, when I introduced:
pecl install oci8-2.0.11
I became this out:
downloading oci8-2.0.11.tgz ...
Starting to download oci8-2.0.11.tgz (191,968 bytes)
..............done: 191,968 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
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] :
I gave there the path to the ORACLE_HOME in my case:
instantclient, /Library/oracle/instantclient_12_1/
And after that this out:
building in /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11
running: /private/tmp/pear/install/oci8/configure --with-php-config=/usr/local/bin/php-config
--with-oci8=instantclient,/Library/oracle/instantclient_12_1/
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-apple-darwin15.5.0
checking host system type... x86_64-apple-darwin15.5.0
checking target system type... x86_64-apple-darwin15.5.0
checking for PHP prefix... /usr/local/Cellar/php56/5.6.19
checking for PHP includes... -I/usr/local/Cellar/php56/5.6.19/include/php
-I/usr/local/Cellar/php56/5.6.19/include/php/main -I/usr/local/Cellar/php56/5.6.19/include/php/TSRM
-I/usr/local/Cellar/php56/5.6.19/include/php/Zend -I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
checking for PHP extension directory...
/usr/local/Cellar/php56/5.6.19/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/Cellar/php56/5.6.19/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 5.6.19, ok
checking OCI8 DTrace support... no
checking size of long int... 8
checking checking if we're on a 64-bit platform... yes
checking Oracle Instant Client directory... /Library/oracle/instantclient_12_1/
checking Oracle Instant Client SDK header directory...
/Library/oracle/instantclient_12_1//sdk/include
checking Oracle Instant Client library version compatibility... 12.1
checking for ld used by cc...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU
ld... no
checking for
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to
reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports
shared libraries... yes
checking dynamic linker characteristics... darwin15.5.0 dyld
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
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=compile cc -I.
-I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8.c -o oci8.lo
mkdir .libs
cc -I. -I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8.c -fno-common -DPIC -o .libs/oci8.o
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=compile cc -I.
-I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_lob.c -o oci8_lob.lo
cc -I. -I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_lob.c -fno-common -DPIC -o .libs/oci8_lob.o
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=compile cc -I.
-I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_statement.c -o oci8_statement.lo
cc -I. -I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_statement.c -fno-common -DPIC -o .libs/oci8_statement.o
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=compile cc -I.
-I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_collection.c -o oci8_collection.lo
cc -I. -I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_collection.c -fno-common -DPIC -o .libs/oci8_collection.o
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=compile cc -I.
-I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_interface.c -o oci8_interface.lo
cc -I. -I/private/tmp/pear/install/oci8 -DPHP_ATOM_INC
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c
/private/tmp/pear/install/oci8/oci8_interface.c -fno-common -DPIC -o .libs/oci8_interface.o
/bin/sh /private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/libtool --mode=link cc
-DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/include
-I/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/main -I/private/tmp/pear/install/oci8
-I/usr/local/Cellar/php56/5.6.19/include/php -I/usr/local/Cellar/php56/5.6.19/include/php/main
-I/usr/local/Cellar/php56/5.6.19/include/php/TSRM -I/usr/local/Cellar/php56/5.6.19/include/php/Zend
-I/usr/local/Cellar/php56/5.6.19/include/php/ext
-I/usr/local/Cellar/php56/5.6.19/include/php/ext/date/lib
-I/Library/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -o oci8.la
-export-dynamic -avoid-version -prefer-pic -module -rpath
/private/tmp/pear/install/pear-build-rootjla8BQ/oci8-2.0.11/modules oci8.lo oci8_lob.lo
oci8_statement.lo oci8_collection.lo oci8_interface.lo
-Wl,-rpath,/Library/oracle/instantclient_12_1/ -L/Library/oracle/instantclient_12_1/ -lclntsh
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/oci8.so -bundle .libs/oci8.o
.libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o
-L/Library/oracle/instantclient_12_1/ -lclntsh -Wl,-rpath -Wl,/Library/oracle/instantclient_12_1/
There came this error:
ld: file not found: @rpath/libnnz12.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [oci8.la] Error 1
ERROR: `make' failed
I made no changes on my computer (no changes on the Instant Client installation, no changes in the
php installation and no changes in the Pecl), nobody has access to my computer or something like
that, but it works now. I don't know why... but the build process completed successfully.
Thanks for your help
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=72371
--
Edit this bug report at https://bugs.php.net/bug.php?id=72371&edit=1