Quote:
Originally Posted by TB0ne
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