Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem in installing DBD::ORACLE PACKAGE

Member
 
Join Date: Jan 2008
Posts: 36
#1: Jan 28 '08
Hello All,
I have problem in installing DBD::ORACLE package.

Please can any one have experience in installing DBD::ORACLE package.

please give me some hints to install this DBD::ORACLE packages.

shafi

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#2: Jan 28 '08

re: Problem in installing DBD::ORACLE PACKAGE


Quote:

Originally Posted by mdshafi01

Hello All,
I have problem in installing DBD::ORACLE package.

Please can any one have experience in installing DBD::ORACLE package.

please give me some hints to install this DBD::ORACLE packages.

shafi

Well, how are you trying to install it and what errors are you getting? Without that, we cannot tell you what is happening.

Regards,

Jeff
Member
 
Join Date: Jan 2008
Posts: 36
#3: Jan 29 '08

re: Problem in installing DBD::ORACLE PACKAGE


Hello ,
First I have extracted the .gz file contents into one folder.
Then from that folder I am trying to execute this command so I am getting this error.

Perl MakeFile.pl

Error

While executing the perl Makefile.PL is getting executed and the make is failing with the following error.

# make

cp Oracle.pm blib/lib/DBD/Oracle.pm

cp mkta.pl blib/lib/DBD/mkta.pl

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 mk.pm blib/arch/auto/DBD/Oracle/mk.pm

cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm

/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" /opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI/Driver.xst > Oracle.xsi

/usr/bin/perl /opt/perl_32/lib/5.8.8/ExtUtils/xsubpp -typemap /opt/perl_32/lib/5.8.8/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c

cc -c -I/opt/app/oracle/product/9.2.0.6/rdbms/demo -I. -I/opt/app/oracle/product/9.2.0.6/precomp/public -I/opt/app/oracle/product/9.2.0.6/rdbms/public -I/opt/app/oracle/product/9.2.0.6/rdbms/demo -I/opt/app/oracle/product/9.2.0.6/plsql/public -I/opt/app/oracle/product/9.2.0.6/network/public -I/opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" +Z "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.6\" Oracle.c

cpp: "Oracle.h", line 37: error 4036: Can't open include file 'oci.h'.

cpp: "Oracle.h", line 39: error 4036: Can't open include file 'ocidfn.h'.

cpp: "Oracle.h", line 40: error 4036: Can't open include file 'orid.h'.

cpp: "Oracle.h", line 41: error 4036: Can't open include file 'ori.h'.

*** Error exit code 1



Stop.

#

Please tell give me some hints to complete this installation.

shafi
Member
 
Join Date: Jan 2008
Posts: 36
#4: Jan 29 '08

re: Problem in installing DBD::ORACLE PACKAGE


Hello all,

while installing DBD::ORACLE package in machine. I am getting following errorl


I am using this command to install this package.

ppm install DBD-Oracle.ppd

This is my DBD-Oracle.ppd
<?xml version="1.0" encoding="UTF-8"?>
<SOFTPKG NAME="DBD-Oracle" VERSION="1,12,0,0">
<IMPLEMENTATION>
<CODEBASE HREF="MSWin32-x86-multi-thread\DBD-Oracle.tar.gz" />
<ARCHITECTURE NAME="MSWin32-x86-multi-thread" />
<OS NAME="MSWin32" />
</IMPLEMENTATION>
<ABSTRACT>Oracle database driver for the DBI module</ABSTRACT>
<AUTHOR>Tim Bunce (dbi-users@perl.org)</AUTHOR>
<TITLE>DBD-Oracle</TITLE>
</SOFTPKG>

Error I am gettig is :

ppm install failed: PPD does not contain code to install in this platform.

please help me in solving this issue.

shafi
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#5: Jan 29 '08

re: Problem in installing DBD::ORACLE PACKAGE


First, I would check and ensure the the files that it is complaining are missing are actually not there.

Question, I noticed you are building the module by hand. Is there a reason you aren't using the CPAN interface to install the module? It would be loads easier and save you this headache.

Regards,

Jeff
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#6: Jan 29 '08

re: Problem in installing DBD::ORACLE PACKAGE


Quote:

Originally Posted by mdshafi01

Hello all,

while installing DBD::ORACLE package in machine. I am getting following errorl


I am using this command to install this package.

ppm install DBD-Oracle.ppd

This is my DBD-Oracle.ppd
<?xml version="1.0" encoding="UTF-8"?>
<SOFTPKG NAME="DBD-Oracle" VERSION="1,12,0,0">
<IMPLEMENTATION>
<CODEBASE HREF="MSWin32-x86-multi-thread\DBD-Oracle.tar.gz" />
<ARCHITECTURE NAME="MSWin32-x86-multi-thread" />
<OS NAME="MSWin32" />
</IMPLEMENTATION>
<ABSTRACT>Oracle database driver for the DBI module</ABSTRACT>
<AUTHOR>Tim Bunce (dbi-users@perl.org)</AUTHOR>
<TITLE>DBD-Oracle</TITLE>
</SOFTPKG>

Error I am gettig is :

ppm install failed: PPD does not contain code to install in this platform.

please help me in solving this issue.

shafi

Ok, it looks like you have abandoned the manual build of this module and decided to use PPM. Since this is the SAME issue as before, just different error, I am going to merge the two threads together.

In the future, if you are working on the same problem, but change your attack method to the problem, please keep the thread together and do not split it off into seperate threads.

Regards,

MODERATOR
Member
 
Join Date: Jan 2008
Posts: 36
#7: Feb 4 '08

re: Problem in installing DBD::ORACLE PACKAGE


What is this CPAN interface. From where i can receive this CPAN interface to install perl packages.

Please give me some details setps and instructions which are should be followed to complete this task.

shafi

Quote:

Originally Posted by numberwhun

First, I would check and ensure the the files that it is complaining are missing are actually not there.

Question, I noticed you are building the module by hand. Is there a reason you aren't using the CPAN interface to install the module? It would be loads easier and save you this headache.

Regards,

Jeff

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#8: Feb 4 '08

re: Problem in installing DBD::ORACLE PACKAGE


Quote:

Originally Posted by mdshafi01

What is this CPAN interface. From where i can receive this CPAN interface to install perl packages.

Please give me some details setps and instructions which are should be followed to complete this task.

shafi

The CPAN interface is part of Perl. If you are using linux/unix then type the following at the command line:

Expand|Select|Wrap|Line Numbers
  1. perl -MCPAN -e shell
  2.  
That will put you into the CPAN shell. From there, if you have never run it, you will have to configure it so that it is setup. Just follow the on screen instructions.

To install a module, after you have completed the initial cpan setup, you would just type:

install <module::name>

For instance, it is recommended, after you complete the cpan setup, to install the cpan bundle to get the latest version. You would do that by issuing the command:

install Bundle::CPAN

Regards,

Jeff
Member
 
Join Date: Jan 2008
Posts: 36
#9: Feb 5 '08

re: Problem in installing DBD::ORACLE PACKAGE


Please some one help me installing this.
shafi
Member
 
Join Date: Jan 2008
Posts: 36
#10: Feb 5 '08

re: Problem in installing DBD::ORACLE PACKAGE


THIS ERROR I AM GETTIGN WHEN I TRY TO INSTALL
Running Mkbootstrap for DBD::Oracle ()

chmod 644 Oracle.bs

rm -f blib/arch/auto/DBD/Oracle/Oracle.so

/usr/bin/ld -Wl,+b"/opt/app/oracle/product/9.2.0/lib32:/opt/app/oracle/product/9.2.0/rdbms/lib32" -b +vnocompatwarnings -L/usr/lib/hpux32 Oracle.o dbdimp.o oci8.o -L/opt/app/oracle/product/9.2.0/rdbms/lib32/ -L/opt/app/oracle/product/9.2.0/lib32/ -lclntsh `cat /opt/app/oracle/product/9.2.0/lib32/ldflags` -lm -o blib/arch/auto/DBD/Oracle/Oracle.so

ld: Unrecognized argument: -Wl,+b/opt/app/oracle/product/9.2.0/lib32:/opt/app/oracle/product/9.2.0/rdbms/lib32

Fatal error.

*** Error exit code 1
Reply