php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72371 Problem installing oci8-2.0.11
Submitted: 2016-06-09 14:27 UTC Modified: 2016-06-21 07:55 UTC
From: miguel dot molina at statistik dot rlp dot de Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.6.19 OS: OS X El Capitan 10.11.5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: miguel dot molina at statistik dot rlp dot de
New email:
PHP Version: OS:

 

 [2016-06-09 14:27 UTC] miguel dot molina at statistik dot rlp dot de
Description:
------------
Hello,

I'm trying to install the oci8-2.0.11 (I tried the version 2.0.10, 2.0.9, 2.0.8...) driver for Oracle Instant Client 12.1.0.2 (I tried the version 11.2.0.4.0 too) in my iMac (x64, Intel Core i5, O.S OS X El Capitan 10.11.5). I get always the same 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

The file exits in the ORACLE_HOME folder, and I tried it with the another versions, I need this driver on my distribution. Do you know how to solve this problem?

Best Regards

Miguel Molina


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-09 15:16 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: PECL +Package: OCI8 related
 [2016-06-09 15:16 UTC] cmb@php.net
Which PHP version are you using? It seems to me that this might be relevant.
 [2016-06-09 15:19 UTC] miguel dot molina at statistik dot rlp dot de
-Status: Feedback +Status: Open -PHP Version: Irrelevant +PHP Version: 5.6.19
 [2016-06-09 15:19 UTC] miguel dot molina at statistik dot rlp dot de
I´m using (php -v): 

PHP 5.6.19 (cli) (built: Mar 14 2016 11:55:51) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
 [2016-06-16 05:57 UTC] sixd@php.net
-Assigned To: +Assigned To: sixd
 [2016-06-16 05:57 UTC] sixd@php.net
Your configure command would be a useful item to know.

Building works fine for me with the new 12.1 Instant Client, e.g. with
'/Users/cjones/php-5.6/configure' \
'--enable-debug' \
'--prefix=/Users/cjones/p/php56-ic121' \
'--with-apxs2=/Users/cjones/opt/apache24/bin/apxs' \
'--enable-fpm' \
'--disable-cgi' \
'--with-zlib' \
'--enable-pdo' \
'--with-pdo-oci=instantclient,/Users/cjones/instantclient_12_1,12.1' \
'--with-oci8=shared,instantclient,/Users/cjones/instantclient_12_1' \
'--with-pdo-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-mysql=mysqlnd' \
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \
'--enable-opcache' \
'--enable-mbstring' \
'--with-gd' \
'--with-jpeg-dir' \
'--with-png-dir' \
'--enable-gd-native-ttf' \
"$@"

There is no ORACLE_HOME with Instant Client.
 [2016-06-16 05:58 UTC] sixd@php.net
-Status: Assigned +Status: Feedback
 [2016-06-16 06:42 UTC] sixd@php.net
PS Instant Client 12.1 for OS X was installed following the install instructions:
http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html#ic_osx_inst
 [2016-06-20 09:38 UTC] miguel dot molina at statistik dot rlp dot de
-Status: Feedback +Status: Assigned
 [2016-06-20 09:38 UTC] 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
 [2016-06-21 07:55 UTC] sixd@php.net
-Status: Assigned +Status: Closed
 [2016-06-21 07:55 UTC] sixd@php.net
These things happen. Thanks for taking time to report it and give feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC