Operating System - HP-UX
1826950 Members
3950 Online
109705 Solutions
New Discussion

Perl for HP UX 11.31 PA risc server

 
Madhavendra
Occasional Advisor

Perl for HP UX 11.31 PA risc server

Please let me know where can i get Perl for 11.31 PA risc server...

I wanted to install compile DBI:DBD module for Oracle 10g as well after that.
12 REPLIES 12
James R. Ferguson
Acclaimed Contributor

Re: Perl for HP UX 11.31 PA risc server

Hi:

You can fetch an HP-compiled binary distribution from here:

www.hp.com/go/perl

If you use this version, you need to have the HP-UX ANSI C compiler:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

In the first link, above, there are notes for installing the DBI/DBD modules too.

If you don't have a license for the HP Ansi C compiler, you can fetch a Perl binary that has been compiled with 'gcc'. Modules that require compilation will need the same compiler as the core Perl binaries were compiled with.

Merijn doesn't have a 11.31 PA-RISC Perl binary on his site, so you may be forced to build that from source with the 'gcc' compiler if you can't license the HP one.

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Perl for HP UX 11.31 PA risc server

Shalom,

Perl ships with the OS.

Search http://software.hp.com for PERL5 and you can get a modern up to date version.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Madhavendra
Occasional Advisor

Re: Perl for HP UX 11.31 PA risc server

Hi James,

Thanks for the info..I followed the steps which you provided me.. Atleast it went ahead but stuck in copiling DBD module.

I am getting the following error:
# make
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/Object.pm blib/lib/DBD/Oracle/Object.pm
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 && m
v Oracle.xsc Oracle.c
cc -c -I/opt/oracle/product/10.2.0.4/rdbms/public -I/opt/oracle/product/10.2.0.4/rdbms/demo -I/opt/oracle/product/10.2.0.4/rdbms/public -I/opt/orac
le/product/10.2.0.4/plsql/public -I/opt/oracle/product/10.2.0.4/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 +DAportable +DS2.0 +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" +Z "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/
CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.4\" Oracle.c
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0 cc -c -I/opt/oracle/product/10.2.0.4/rdbms/public -I/opt/oracle/product/10.2.0.4/rdbms/demo -I/opt/oracle/product/10.2.
0.4/rdbms/public -I/opt/oracle/product/10.2.0.4/plsql/public -I/opt/oracle/product/10.2.0.4/network/public -I/opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thr
ead-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DAportable +DS2.0 +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEE
D -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" +Z "-I/opt/perl_32/lib/5.
8.8/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.4\" dbdimp.c
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0 cc -c -I/opt/oracle/product/10.2.0.4/rdbms/public -I/opt/oracle/product/10.2.0.4/rdbms/demo -I/
opt/oracle/product/10.2.0.4/rdbms/public -I/opt/oracle/product/10.2.0.4/plsql/public -I/opt/oracle/product/10.2.0.4/network/public -I/opt/perl_32/lib/site_p
erl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DAportable +DS2.0 +Z -DUSE_SIT
ECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" +
Z "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.4\" oci8.c
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found
:0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field fo
und :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0fiel
d found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0
field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0field found :0x0Running Mkbo
otstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
LD_RUN_PATH="/opt/oracle/product/10.2.0.4/lib32:/opt/oracle/product/10.2.0.4/rdbms/lib32" /usr/bin/ld -b +vnocompatwarnings Oracle.o dbdimp.o oci
8.o -L/opt/oracle/product/10.2.0.4/rdbms/lib32/ -L/opt/oracle/product/10.2.0.4/lib32/ /usr/lib32 -lclntsh `cat /opt/oracle/product/10.2.0.4/lib32/ldflags`
-lm -o blib/arch/auto/DBD/Oracle/Oracle.sl \
\

/usr/bin/ld: Can't open /usr/lib32
/usr/bin/ld: No such file or directory
*** Error exit code 1

Stop.
You have mail in /var/mail/root
Please suggest me what is the next step to follow..
James R. Ferguson
Acclaimed Contributor

Re: Perl for HP UX 11.31 PA risc server

Hi (again):

You are using a 32-bit Perl where I suspect you need a 64-bit one (to match your Oracle). The HP depots provide both with 32-bit being the default after installation.

Regards!

...JRF...

Tim Nelson
Honored Contributor

Re: Perl for HP UX 11.31 PA risc server

here are my tips for getting DBD to work.

-install Ansi\C ($$) or GCC
-perl build needs to match the compiler as the config pulls settings from the perl build
-be sure to export your Oracle environment before build.

Oracle envs
export ORACLE_USERID=user/pass
export ORACLE_HOME=/u01/oracle/product/xx.x
export ORACLE_SID=@SID
export SHLIB_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib


Search this forum for DBD, there a many many hits.

Madhavendra
Occasional Advisor

Re: Perl for HP UX 11.31 PA risc server

Hi Tim,
i had exported all the files even though i am getting same error.
otstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
LD_RUN_PATH="/opt/oracle/product/10.2.0.4/lib32:/opt/oracle/product/10.2.0.4/rdbms/lib32" /usr/bin/ld -b +vnocompatwarnings Oracle.o dbdimp.o oci
8.o -L/opt/oracle/product/10.2.0.4/rdbms/lib32/ -L/opt/oracle/product/10.2.0.4/lib32/ /usr/lib32 -lclntsh `cat /opt/oracle/product/10.2.0.4/lib32/ldflags`
-lm -o blib/arch/auto/DBD/Oracle/Oracle.sl \
\

/usr/bin/ld: Can't open /usr/lib32
/usr/bin/ld: No such file or directory
*** Error exit code 1

Stop.
Madhavendra
Occasional Advisor

Re: Perl for HP UX 11.31 PA risc server

Thanks James,

How can i set to use 64bit perl.. but my DBI compiled went smooth..DBD threw an error :
otstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
LD_RUN_PATH="/opt/oracle/product/10.2.0.4/lib32:/opt/oracle/product/10.2.0.4/rdbms/lib32" /usr/bin/ld -b +vnocompatwarnings Oracle.o dbdimp.o oci
8.o -L/opt/oracle/product/10.2.0.4/rdbms/lib32/ -L/opt/oracle/product/10.2.0.4/lib32/ /usr/lib32 -lclntsh `cat /opt/oracle/product/10.2.0.4/lib32/ldflags`
-lm -o blib/arch/auto/DBD/Oracle/Oracle.sl \
\

/usr/bin/ld: Can't open /usr/lib32
/usr/bin/ld: No such file or directory
*** Error exit code 1

Stop.
If i need to set 64BIT perl use how can i se that..
Dennis Handly
Acclaimed Contributor

Re: Perl for HP UX 11.31 PA risc server

>ld: Can't open /usr/lib32

This may come from this:
`cat /opt/oracle/product/10.2.0.4/lib32/ldflags`

What's in ldflags?

Or this:
-L/opt/oracle/product/10.2.0.4/lib32/ /usr/lib32

That extra "/usr/lib32" doesn't have a -L and that path isn't value for HP-UX. Since /usr/lib/hpux32 is the default, remove it.
Suraj K Sankari
Honored Contributor

Re: Perl for HP UX 11.31 PA risc server

Hi,>>How can i set to use 64bit perl.. but my DBI compiled went smooth..DBD threw an error

What is your OS version ?
to know type this command
uname -a
getconf KERNEL_BITS
according to the output download the perl version from the below link

http://mirrors.develooper.com/hpux/downloads.html

Suraj
Dennis Handly
Acclaimed Contributor

Re: Perl for HP UX 11.31 PA risc server

>Suraj: getconf KERNEL_BITS

This is a waste of time since it will always return "black" for 11.23 and 11.31.
James R. Ferguson
Acclaimed Contributor

Re: Perl for HP UX 11.31 PA risc server

Hi (again):

Your Perl bitness and your Oracle bitness must match. If you are using a 64-bit Oracle then you will need a 64-bit Perl. By default HP installs Perl's 32-bit version.

To change to 64-bit Perl do:

# rm /opt/perl #...a symlink
# ln -s /opt/perl_64 /opt/perl

Regards!

...JRF...
Madhavendra
Occasional Advisor

Re: Perl for HP UX 11.31 PA risc server

Thanks everyone for your help..

My issue has been resolved after pointing my perl to 64 bits..i linked my perl to 64 bit and DBD went smooth has Oracle 10g..