Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

DBD::ORACLE Installation problem

by shafmoha (Initiate)
on Feb 07, 2008 at 09:54 UTC ( [id://666767]=perlquestion: print w/replies, xml ) Need Help??

shafmoha has asked for the wisdom of the Perl Monks concerning the following question:

Hello All,
I am trying to install this DBD::Oracle in my machine. But I a getting error. I have already installed DBI 1.51 and I have perl 5.8.8 I am trying to install this DBD::Oracle now it is not getting installed.

I have configured all required environment variables.

I am getting following error. please tell me how to complete this installation successfully.

This is the error i am getting

While executing the make command I am getting the following error mess +age. cc: "oci8.c", line 1325: warning 604: Pointers are not assignment-comp +atible. cc: "oci8.c", line 1325: warning 563: Argument #8 is not the correct t +ype. cc: "oci8.c", line 1365: warning 604: Pointers are not assignment-comp +atible. cc: "oci8.c", line 1365: warning 563: Argument #1 is not the correct t +ype. cc: "oci8.c", line 1366: warning 604: Pointers are not assignment-comp +atible. cc: "oci8.c", line 1366: warning 563: Argument #1 is not the correct t +ype. Running Mkbootstrap for DBD::Oracle () chmod 644 Oracle.bs rm -f blib/arch/auto/DBD/Oracle/Oracle.sl /usr/bin/ld -Wl,+b"/opt/app/oracle/product/9.2.0.6/lib32:/opt/ +app/oracle/product/9.2.0.6/rdbms/lib32" -b +vnocompatwarnings Oracle +.o dbdimp.o oci8.o -L/opt/app/oracle/product/9.2.0.6/rdbms/lib32/ - +L/opt/app/oracle/product/9.2.0.6/lib32/ -lclntsh `cat /opt/app/ora +cle/product/9.2.0.6/lib32/ldflags` -lm -o blib/arch/auto/DBD/Or +acle/Oracle.sl \ \ /usr/bin/ld: Unrecognized argument: -Wl,+b/opt/app/oracle/product/9.2. +0.6/lib32:/opt/app/oracle/product/9.2.0.6/rdbms/lib32 /usr/bin/ld: Usage: /usr/bin/ld [options] [flags] files *** Error exit code 1 Stop.

Update: WHAT IS TWO_TASK ENVIRONEMTN VARIABLE.

20080207 Janitored by Corion: Restored original content+update, added formatting, code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re: DBD::ORACLE Installation problem
by roboticus (Chancellor) on Feb 07, 2008 at 10:57 UTC
    shafmoha:

    The primary error appears to be that the linker (/usr/bin/ld) doesn't like the command line it's getting. Since +vnocompatwarnings isn't an ld option I'm familiar with, I imagine you're not using GNU gcc/ld/etc. So double-check your environment variables used to generate the arguments for ld.

    Often, warnings on pointer manipulation are able to be ignored. But if you're on a 64-bit platform, you'll probably want to double-check, especially as you're linking to something in a "lib32" directory....

    Well, that's about the best I can do. For this type of problem, you'll need to be more specific, such as:

    • Which OS and version are you running?
    • Which compiler and version are you running?
    • You should provide the command-line for all programs that are complaining. You got the ld command in there, but you missed the cc command line.

    Finally, you'll want want to add <c>code tags</c> around your error message text to make it easier for others to read.

    Good luck!

    ...roboticus

Re: DBD::ORACLE Installation problem
by olus (Curate) on Feb 07, 2008 at 10:56 UTC

    You mention you have configured all ENV vars, which ones? ORACLE_HOME and LD_LIBRARY_PATH are usually the ones you need to configure.

    Also check to see if you have the PERL5LIB set on your environment. If you do, you may need to unset it, as Oracle products tend to set that var so that the perl used is the one that comes bundled with its distributions. And whilst you say you are using 5.8.8 you may in fact be using an older version.

Re: DBD::ORACLE Installation problem
by shmem (Chancellor) on Feb 07, 2008 at 10:49 UTC
    Too little information. Please include the output of perl -V to your post. Please use <code></code> tags around any terminal output you paste into your post.

    That looks like your make tool-chain got messed up (i.e. wrong linker (ld) invoked). perl -V should tell you which compiler was used to build perl. Use that one; fix your $PATH environment variable so that it is found first.

    If all fails, you could open the Makefile with your editor of choice, delete the offending flag and give it a try.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re: DBD::ORACLE Installation problem
by roboticus (Chancellor) on Feb 07, 2008 at 12:32 UTC
    shafmoha:

    Gark! You removed the original node content. Please don't do that, as it makes the thread useless to future readers. Updating the node with new content at the end is fine, and replying to replies is good. But removing the content from the original node is not.

    ...roboticus

Re: DBD::ORACLE Installation problem
by cdarke (Prior) on Feb 07, 2008 at 15:38 UTC
Re: DBD::ORACLE Installation problem
by marto (Cardinal) on Feb 07, 2008 at 12:41 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://666767]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found