LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2009, 11:38 AM   #1
djlerman
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Error Installing DBD:Oracle


Oracle client is 10.2.0
perl is v5.8.8 built for i386-linux-thread-multi
os is CentOS

I am trying to install DBD::Oracle using this command:
perl -MCPAN -e "install 'DBD::Oracle'"

and I get the following error:

/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
[root@ktazd2001 DBD-Oracle-1.22]#


Any suggestions?

Thank You...
~Donavon
 
Old 02-12-2009, 12:22 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,112

Rep: Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837Reputation: 7837
Quote:
Originally Posted by djlerman View Post
Oracle client is 10.2.0
perl is v5.8.8 built for i386-linux-thread-multi
os is CentOS

I am trying to install DBD::Oracle using this command:
perl -MCPAN -e "install 'DBD::Oracle'"

and I get the following error:

/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
[root@ktazd2001 DBD-Oracle-1.22]#


Any suggestions?

Thank You...
~Donavon

Yep...install "make". Your error clearly indicates that /usr/bin/make can't be found.

Check this by doing (as root), a "locate make" or "find / -name make". If you find it, and it's not (as the shell indicates), in /usr/bin, make a symbolic link to it ("ln -s </path/to/make> /usr/bin/make"), and try again.
 
Old 02-12-2009, 01:04 PM   #3
djlerman
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Yep...install "make". Your error clearly indicates that /usr/bin/make can't be found.

Check this by doing (as root), a "locate make" or "find / -name make". If you find it, and it's not (as the shell indicates), in /usr/bin, make a symbolic link to it ("ln -s </path/to/make> /usr/bin/make"), and try again.
Hmm.. Make is available.

[root@ktazd2001 DBD-Oracle-1.22]# ls -al /usr/bin/make
-rwxr-xr-x 1 root root 162652 May 24 2008 /usr/bin/make

[root@ktazd2001 DBD-Oracle-1.22]# make -v
make: getcwd: No such file or directory
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i686-redhat-linux-gnu

Here is the full output from the perl -MCPAN -e "install 'DBD::Oracle'" command.
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 12 Feb 2009 14:28:24 GMT
Running install for module DBD::Oracle
Running make for P/PY/PYTHIAN/DBD-Oracle-1.22.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.22.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DBD-Oracle-1.22/
DBD-Oracle-1.22/Changes
...
...
DBD-Oracle-1.22/typemap
Removing previously used /root/.cpan/build/DBD-Oracle-1.22

CPAN.pm: Going to build P/PY/PYTHIAN/DBD-Oracle-1.22.tar.gz

Multiple copies of Driver.xst found in: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/ at Makefile.PL line 37
Using DBI 1.604 (for perl 5.008008 on i386-linux-thread-multi) installed in /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI/

Configuring DBD::Oracle for perl 5.008008 on linux (i386-linux-thread-multi)

Remember to actually *READ* the README file! Especially if you have any problems.

Installing on a linux, Ver#2.6
Using Oracle in /u01/app/oratst/oracle/product/10.2.0/client_1
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
Oracle version 10.2.0.1 (10.2)
Found /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo/demo_rdbms.mk
Found /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/ins_rdbms.mk
Using /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo/demo_rdbms.mk
Your LD_LIBRARY_PATH env var is set to 'lib:/u01/app/oratst/oracle/product/10.2.0/client_1/lib:'
Reading /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo/demo_rdbms.mk
Reading /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/env_rdbms.mk

Attempting to discover Oracle OCI build rules
gcc -c -o DBD_ORA_OBJ.o DBD_ORA_OBJ.c
by executing: [make -f /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo/demo_rdbms.mk build ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
Oracle oci build prolog:
[Building client shared library libclntsh.so ...]
[Call script /u01/app/oratst/oracle/product/10.2.0/client_1/bin/genclntsh ...]
[genclntsh]
[Built /u01/app/oratst/oracle/product/10.2.0/client_1/lib/libclntsh.so ... DONE]
Oracle oci build command:
[true -L/u01/app/oratst/oracle/product/10.2.0/client_1/lib/ -L/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh `cat /u01/app/oratst/oracle/product/10.2.0/client_1/lib/sysliblist` -ldl -lm ]

Found header files in /u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public.

Checking for functioning wait.ph


System: perl5.008008 linux builder16.centos.org 2.6.18-53.1.14.el5pae #1 smp wed mar 5 12:07:47 est 2008 i686 athlon i386 gnulinux
Compiler: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc
Oracle makefiles would have used these definitions but we override them:
CC: $(COMPDIR)/bin/gcc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -O2 $(CDEBUG) $(CCFLAGS) -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/plsql/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/network/public -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS $(LPFLAGS) $(USRFLAGS)]
LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME) $(LDPATHFLAG)$(LIBHOME)stubs/ -L$(COMPDIR)/lib -lirc
[-o $@ -L/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/ -L$(LIBHOME) -L$(LIBHOME)stubs/ -L/usr/lib -lirc]
Linking with OTHERLDFLAGS = -L/u01/app/oratst/oracle/product/10.2.0/client_1/lib/ -L/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/ -lclntsh `cat /u01/app/oratst/oracle/product/10.2.0/client_1/lib/sysliblist` -ldl -lm [from 'build' rule]

Checking if your kit is complete...
Warning: the following files are missing in your kit:
META.yml
Please inform the author.
LD_RUN_PATH=/u01/app/oratst/oracle/product/10.2.0/client_1/lib:/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib
Using DBD::Oracle 1.22.
Using DBD::Oracle 1.22.
Multiple copies of Driver.xst found in: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/ at Makefile.PL line 1693
Using DBI 1.604 (for perl 5.008008 on i386-linux-thread-multi) installed in /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Oracle

*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)

cp Oracle.pm blib/lib/DBD/Oracle.pm
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI/Driver.xst > Oracle.xsi
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
gcc -c -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/plsql/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/network/public -I/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\" Oracle.c
gcc -c -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/plsql/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/network/public -I/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
dbdimp.c: In function ‚ora_st_execute_array‚:
dbdimp.c:3328: warning: unused variable ‚sv2‚
gcc -c -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/demo -I/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/plsql/public -I/u01/app/oratst/oracle/product/10.2.0/client_1/network/public -I/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\" oci8.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib Oracle.o dbdimp.o oci8.o -L/u01/app/oratst/oracle/product/10.2.0/client_1/lib/ -L/u01/app/oratst/oracle/product/10.2.0/client_1/rdbms/lib/ -lclntsh `cat /u01/app/oratst/oracle/product/10.2.0/client_1/lib/sysliblist` -ldl -lm -o blib/arch/auto/DBD/Oracle/Oracle.so \
\

/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Last edited by djlerman; 02-12-2009 at 01:45 PM. Reason: adding information....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DBD-Oracle perl module hassan2 SUSE / openSUSE 5 02-22-2012 11:28 AM
Error when installing Oracle 10G on FC4 fvillavi Fedora 4 09-16-2005 07:32 PM
DBD::ORacle installation nguye103 Linux - Software 0 11-19-2004 03:45 PM
Getting error when installing Oracle 11.5.9 on RedHat AS 3.0 yorcl Linux - Software 1 11-17-2004 10:48 AM
Error while installing oracle 9i R2 on RedHat 8.0 leisure Linux - Software 0 03-24-2003 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration