This discussion is archived
3 Replies Latest reply: Mar 5, 2013 7:45 AM by 973025 RSS

Unable to find Oracle OCI libraries on Centos 6.3

973025 Newbie
Currently Being Moderated
Hello,

I am having an issue with configuring an application(Zabbix) to use OCI on clean image of CentOS 6.3.

checking for Oracle OCI headers in /usr/include/oracle/11.1/client/... yes
checking if Oracle OCI version is >= 10.0... yes
checking for Oracle version >= 11.x to use -lnnz11 flag... yes
checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib/... not found
checking if Oracle support is enabled... no

-----

I try to perform configuration of the source like this:

$ ./configure with-oracle with-oracle-include=/usr/include/oracle/11.1/client with-oracle-lib=/usr/lib/oracle/11.1/client/lib enable-server enable-agent enable-java

-----

config.log has this:

configure:7084: result: no
configure:7089: checking for architecture
configure:7128: result: linux (linux-gnu)
configure:7132: checking for the linux kernel version
configure:7139: result: 2.6 family (2.6.32-279.el6.x86_64)
configure:7810: checking for Oracle OCI headers in /usr/include/oracle/11.1/client
configure:7837: gcc -c -g -O2 -I/usr/include/oracle/11.1/client conftest.c >&5
configure:7837: $? = 0
configure:7846: result: yes
configure:7878: checking if Oracle OCI version is >= 10.0
configure:7895: result: yes
configure:7913: checking for Oracle version >= 11.x to use -lnnz11 flag
configure:7919: result: yes
configure:7941: checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib
configure:7961: gcc -o conftest -g -O2 -I/usr/include/oracle/11.1/client -rdynamic -L/usr/lib/oracle/11.1/client/lib conftest.c -lm -lrt -lresolv -lclntsh -lnnz11 >&5
/usr/bin/ld: skipping incompatible /usr/lib/oracle/11.1/client/lib/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
configure:7961: $? = 1
configure: failed program was:
| /* confdefs.h */

-----

result of *'rpm -qa | grep oracle'* is:

oracle-instantclient11.1-odbc-11.1.0.7.0-1.i386
oracle-instantclient11.1-basic-11.1.0.7.0-1.i386
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.i386
oracle-instantclient11.1-devel-11.1.0.7.0-1.i386
oracle-instantclient11.1-tools-11.1.0.7.0-1.i386
oracle-instantclient11.1-jdbc-11.1.0.7.0-1.i386

-----

result of *'ls -l /usr/lib/oracle/11.1/client/lib'* is:

total 136808
-rw-r--r--. 1 root root 342 Oct 26 2008 glogin.sql
lrwxrwxrwx. 1 root root 17 Feb 28 16:43 libclntsh.so -> libclntsh.so.11.1
-rw-r--r--. 1 root root 37174788 Oct 26 2008 libclntsh.so.11.1
-rw-r--r--. 1 root root 11159 Oct 26 2008 libheteroxa11.so
-rw-r--r--. 1 root root 5974910 Oct 26 2008 libnnz11.so
lrwxrwxrwx. 1 root root 15 Feb 28 16:43 libocci.so -> libocci.so.11.1
-rw-r--r--. 1 root root 2333632 Oct 26 2008 libocci.so.11.1
-rw-r--r--. 1 root root 85112897 Oct 26 2008 libociei.so
-rw-r--r--. 1 root root 129297 Oct 26 2008 libocijdbc11.so
-rw-r--r--. 1 root root 1510045 Oct 26 2008 libsqlplusic.so
-rw-r--r--. 1 root root 1122713 Oct 26 2008 libsqlplus.so
-rw-r--r--. 1 root root 771229 Oct 26 2008 libsqora.so.11.1
-rw-r--r--. 1 root root 1890499 Oct 26 2008 ojdbc5.jar
-rw-r--r--. 1 root root 1988051 Oct 26 2008 ojdbc6.jar
-rw-r--r--. 1 root root 1656243 Oct 26 2008 orai18n.jar
-rw-r--r--. 1 root root 82979 Oct 26 2008 orai18n-mapping.jar
-rw-r--r--. 1 root root 299638 Oct 26 2008 ottclasses.zip

------

result of *'uname -a'* is:

Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


-----

Any help would be appreciated.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points