- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl for HP UX 11.31 PA risc server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 04:24 PM
10-26-2009 04:24 PM
Perl for HP UX 11.31 PA risc server
I wanted to install compile DBI:DBD module for Oracle 10g as well after that.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 03:47 AM
10-27-2009 03:47 AM
Re: Perl for HP UX 11.31 PA risc server
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 04:49 AM
10-27-2009 04:49 AM
Re: Perl for HP UX 11.31 PA risc server
Perl ships with the OS.
Search http://software.hp.com for PERL5 and you can get a modern up to date version.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 04:58 AM
10-27-2009 04:58 AM
Re: Perl for HP UX 11.31 PA risc server
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 05:59 AM
10-27-2009 05:59 AM
Re: Perl for HP UX 11.31 PA risc server
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 06:38 AM
10-27-2009 06:38 AM
Re: Perl for HP UX 11.31 PA risc server
-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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 06:59 AM
10-27-2009 06:59 AM
Re: Perl for HP UX 11.31 PA risc server
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 07:01 AM
10-27-2009 07:01 AM
Re: Perl for HP UX 11.31 PA risc server
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 03:11 PM
10-27-2009 03:11 PM
Re: Perl for HP UX 11.31 PA risc server
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2009 06:37 PM
10-27-2009 06:37 PM
Re: Perl for HP UX 11.31 PA risc server
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 02:22 AM
10-28-2009 02:22 AM
Re: Perl for HP UX 11.31 PA risc server
This is a waste of time since it will always return "black" for 11.23 and 11.31.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 04:01 AM
10-28-2009 04:01 AM
Re: Perl for HP UX 11.31 PA risc server
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 06:16 AM
10-28-2009 06:16 AM
Re: Perl for HP UX 11.31 PA risc server
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..