Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

DBD::Oracle installation

by peschkaj (Pilgrim)
on Oct 31, 2002 at 18:38 UTC ( [id://209474]=perlquestion: print w/replies, xml ) Need Help??

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

I'm looking through the DBD::Oracle installation notes for HP-UX and I have run across the following lines to modify in my Config.pm:

    ccdlflags=''
    cccdlflags='+z'
    ldflags=' -L/usr/local/lib'
Which has confused me (hence why I am asking). I found the corresponding lines in my own Config.pm and they are quite quite different.

My question is: should I remove anything that is in conflict, or merely append the suggestions to my Config.pm?

My current lines look like this:

cccdlflags='-fPIC'
ccdlflags='-Wl,-E -Wl,-B,deferred '
ldflags=' -Wl,+vnocompatwarnings -L/usr/local/lib'

Additionally, when I rebuild perl (5.8.0) should I build a shared libperl.sl or any other funky options that I am not aware of? I am currently building with the following flags:

sh ./Configure \
-Dcc=/home/cpacnm/Qwest/bin/gcc \
-Dprefix=/home/cpacnm/Qwest \
-Uinstallusrbinperl \
-Ubincompat5005

Thanks

If you make something idiot-proof, eventually someone will make a better idiot.
I am that better idiot.

Replies are listed 'Best First'.
Re: DBD::Oracle installation
by robartes (Priest) on Oct 31, 2002 at 19:22 UTC
    I think this depends on the compiler you're planning on using. The documentation you read probably refers to compiling the beast with the standard HPUX C-compiler and linker, which needs the +z flag to generate position independent code.

    The flags including -fPIC are flags for GCC. If you have gcc on HPUX (it's available from HP's site), you will probably save yourself worlds of grief by using that instead of the HP compiler (setting the CC environment variable to the location of your gcc binary will do the trick).

    I can't help you with your other questions though, as I've never installed DBD::Oracle anywhere and the variables to set seem positively alien to me (cccdlflags ???). Sorry :).

    CU
    Robartes-

      I'm using gcc built from source (binutils, yacc, bison, etc), in case that helps anyone out. I attempted a compile of perl with the HP-UX compiler once. I didn't try that again. Thank you for the explanation, though.

      If you make something idiot-proof, eventually someone will make a better idiot.
      I am that better idiot.

Log In?
Username:
Password:

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

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

    No recent polls found