How to install OCI extension in Linux for PHP?
In this post, we will see how to install OCI extension in Linux for PHP.
There are many challenges or issues faced in linux while installing this extension, hence i preferred to post this article.
Lets see it step by step.
1. Try to install oci8 extension
[root@ngelinux001 modules]# pecl install oci8 pecl/oci8 requires PHP (version >= 8.1.0), installed version is 5.4.16 No valid packages found install failed [root@ngelinux001 modules]# pecl install oci8-2.2.0 pecl/oci8 requires PHP (version >= 7.0.0), installed version is 5.4.16 No valid packages found install failed [root@ngelinux001 modules]#
2. Install Oci8 extension specific to PHP version
[root@ngelinux001 oci8-3.2.1]# pecl install oci8-2.0.12 downloading oci8-2.0.12.tgz ... Starting to download oci8-2.0.12.tgz (191,954 bytes) .........................................done: 191,954 bytes 11 source files, building running: phpize Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed [root@ngelinux001 oci8-3.2.1]#
3. Solved error: phpsize: Need php-devel package to build the extension.
[root@ngelinux001 oci8-3.2.1]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-devel-5.4.16-48.el7.x86_64.rpm
--2022-10-31 11:35:26-- http://mirror.centos.org/centos/7/os/x86_64/Packages/php-devel-5.4.16-48.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 111.90.139.14, 2406:da14:d02:6501:83d:3d3c:fc36:b359
Connecting to mirror.centos.org (mirror.centos.org)|111.90.139.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 616952 (602K) [application/x-rpm]
Saving to: ‘php-devel-5.4.16-48.el7.x86_64.rpm’
100%[======================================================================================>] 616,952 450KB/s in 1.3s
2022-10-31 11:35:28 (450 KB/s) - ‘php-devel-5.4.16-48.el7.x86_64.rpm’ saved [616952/616952]
[root@ngelinux001 oci8-3.2.1]# yum install ./php-devel-5.4.16-48.el7.x86_64.rpm
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
: versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
Examining ./php-devel-5.4.16-48.el7.x86_64.rpm: php-devel-5.4.16-48.el7.x86_64
Marking ./php-devel-5.4.16-48.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.4.16-48.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
php-devel x86_64 5.4.16-48.el7 /php-devel-5.4.16-48.el7.x86_64 4.0 M
Transaction Summary
================================================================================================================================
Install 1 Package
Total size: 4.0 M
Installed size: 4.0 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : php-devel-5.4.16-48.el7.x86_64 1/1
Verifying : php-devel-5.4.16-48.el7.x86_64 1/1
Installed:
php-devel.x86_64 0:5.4.16-48.el7
Complete!
[root@ngelinux001 oci8-3.2.1]#
4. Check php cli version and readme file
[root@ngelinux001 oci8-3.2.1]# yum list all | grep -i cli | grep -i php php-cli.x86_64 5.4.16-48.el7 @anaconda/7.9 [root@ngelinux001 oci8-3.2.1]# rpm -qa | grep -i php-cli php-cli-5.4.16-48.el7.x86_64 [root@ngelinux001 oci8-3.2.1]# more README.md # The OCI8 Extension Use the OCI8 extension to access Oracle Database. Documentation is at https://www.php.net/oci8 Use `pecl install oci8` to install for PHP 8. Use `pecl install oci8-2.2.0` to install for PHP 7. Use `pecl install oci8-2.0.12` to install for PHP 5.2 - PHP 5.6. Use `pecl install oci8-1.4.10` to install for PHP 4.3.9 - PHP 5.1. The OCI8 extension can be linked with Oracle client libraries from Oracle Database 10.2 or later. These libraries are found in your database installation, or in the free Oracle Instant Client from https://www.oracle.com/database/technologies/instant-client.html Install the 'Basic' or 'Basic Light' Instant Client package. If building from source, then also install the SDK package.
5. Based on readme file, install applicable version
[root@ngelinux001 opt]# pecl install oci8-2.0.12 downloading oci8-2.0.12.tgz ... Starting to download oci8-2.0.12.tgz (191,954 bytes) .........................................done: 191,954 bytes 11 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 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 /var/tmp/pear-build-rooteyeB62/oci8-2.0.12 running: /var/tmp/oci8/configure --with-oci8 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/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 checking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/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... gawk checking for Oracle Database OCI8 support... yes, shared checking PHP version... 5.4.16, ok checking OCI8 DTrace support... no checking size of long int... 8 checking checking if we're on a 64-bit platform... yes configure: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead checking Oracle Instant Client directory... configure: error: Oracle Instant Client directory /usr/lib/oracle/.../client64/lib libraries not found. Try --with-oci8=instantclient,DIR ERROR: `/var/tmp/oci8/configure --with-oci8' failed [root@ngelinux001 opt]#
6. Solved: Error `/var/tmp/oci8/configure –with-oci8′ failed –> Need Oracle Client
[root@ngelinux001 opt]# wget https://download.oracle.com/otn_software/linux/instantclient/218000/oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm
--2022-10-31 11:44:15-- https://download.oracle.com/otn_software/linux/instantclient/218000/oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm
Resolving download.oracle.com (download.oracle.com)... 104.108.229.156
Connecting to download.oracle.com (download.oracle.com)|104.108.229.156|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55606252 (53M) [application/x-redhat-package-manager]
Saving to: ‘oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm’
100%[======================================================================================>] 55,606,252 65.8MB/s in 0.8s
2022-10-31 11:44:17 (65.8 MB/s) - ‘oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm’ saved [55606252/55606252]
[root@ngelinux001 opt]# yum install ./oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
: versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
Examining ./oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm: oracle-instantclient-basic-21.8.0.0.0-1.x86_64
Marking ./oracle-instantclient-basic-21.8.0.0.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-instantclient-basic.x86_64 0:21.8.0.0.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
oracle-instantclient-basic x86_64 21.8.0.0.0-1 /oracle-instantclient-basic-21.8.0.0.0-1.x86_64 238 M
Transaction Summary
================================================================================================================================
Install 1 Package
Total size: 238 M
Installed size: 238 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracle-instantclient-basic-21.8.0.0.0-1.x86_64 [################################ ] 1/1
7. Install Oracle client devel package also.
[root@ngelinux001 opt]# wget https://download.oracle.com/otn_software/linux/instantclient/218000/oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm
--2022-10-31 11:47:10-- https://download.oracle.com/otn_software/linux/instantclient/218000/oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm
Resolving download.oracle.com (download.oracle.com)... 104.108.229.156
Connecting to download.oracle.com (download.oracle.com)|104.108.229.156|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 669596 (654K) [application/x-redhat-package-manager]
Saving to: ‘oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm’
100%[======================================================================================>] 669,596 --.-K/s in 0.03s
2022-10-31 11:47:10 (23.8 MB/s) - ‘oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm’ saved [669596/669596]
[root@ngelinux001 opt]# yum install ./oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
: versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
Examining ./oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm: oracle-instantclient-devel-21.8.0.0.0-1.x86_64
Marking ./oracle-instantclient-devel-21.8.0.0.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-instantclient-devel.x86_64 0:21.8.0.0.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
oracle-instantclient-devel x86_64 21.8.0.0.0-1 /oracle-instantclient-devel-21.8.0.0.0-1.x86_64 2.3 M
Transaction Summary
================================================================================================================================
Install 1 Package
Total size: 2.3 M
Installed size: 2.3 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracle-instantclient-devel-21.8.0.0.0-1.x86_64 1/1
Verifying : oracle-instantclient-devel-21.8.0.0.0-1.x86_64 1/1
Installed:
oracle-instantclient-devel.x86_64 0:21.8.0.0.0-1
Complete!
[root@ngelinux001 opt]#
8. Now install oci8 extension
[root@ngelinux001 opt]# pecl install oci8-2.0.12 downloading oci8-2.0.12.tgz ...
Starting to download oci8-2.0.12.tgz (191,954 bytes)
.........................................done: 191,954 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
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 /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12
running: /var/tmp/oci8/configure --with-oci8
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/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
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/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... gawk
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 5.4.16, ok
checking OCI8 DTrace support... no
checking size of long int... 8
checking checking if we're on a 64-bit platform... yes
configure: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead
checking Oracle Instant Client directory... /usr/lib/oracle/21/client64/lib
checking Oracle Instant Client SDK header directory... /usr/include/oracle/21/client64
checking Oracle Instant Client library version compatibility... 21.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/bin/ld
checking if the linker (/usr/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 whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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/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 mt... no
checking if : 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/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
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -o oci8.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c -o oci8_lob.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c -fPIC -DPIC -o .libs/oci8_lob.o
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c -o oci8_statement.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c -fPIC -DPIC -o .libs/oci8_statement.o
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c -o oci8_collection.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c -fPIC -DPIC -o .libs/oci8_collection.o
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=compile cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c -o oci8_interface.lo
libtool: compile: cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c -fPIC -DPIC -o .libs/oci8_interface.o
/bin/sh /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/include -I/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/main -I/var/tmp/oci8 -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/21/client64 -DHAVE_CONFIG_H -g -O2 -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/modules oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/usr/lib/oracle/21/client64/lib -L/usr/lib/oracle/21/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/21/client64/lib -lclntsh -O2 -Wl,-rpath -Wl,/usr/lib/oracle/21/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 /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/libtool --mode=install cp ./oci8.la /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/modules
libtool: install: cp ./.libs/oci8.so /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/modules/oci8.so
libtool: install: cp ./.libs/oci8.lai /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/modules/oci8.la
libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin:/sbin" ldconfig -n /var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/modules
----------------------------------------------------------------------
Libraries have been installed in:
/var/tmp/pear-build-roothHUXDJ/oci8-2.0.12/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'.
running: make INSTALL_ROOT="/var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12" install
Installing shared extensions: /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr/lib64/php/modules/
running: find "/var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12" | xargs ls -dils
34827394 0 drwxr-xr-x 3 root root 17 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12
60500 0 drwxr-xr-x 3 root root 19 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr
34827395 0 drwxr-xr-x 3 root root 17 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr/lib64
67960832 0 drwxr-xr-x 3 root root 21 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr/lib64/php
104716326 0 drwxr-xr-x 2 root root 21 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr/lib64/php/modules
104716327 552 -rwxr-xr-x 1 root root 562896 Oct 31 11:48 /var/tmp/pear-build-roothHUXDJ/install-oci8-2.0.12/usr/lib64/php/modules/oci8.so
Build process completed successfully
Installing '/usr/lib64/php/modules/oci8.so'
install ok: channel://pecl.php.net/oci8-2.0.12
configuration option "php_ini" is not set to php.ini location
You should add "extension=oci8.so" to php.ini
[root@ngelinux001 opt]#
