New install for DBD-Oracle in HP-UX
Hi
I am pulling my hair out with a simple install. I have two HP-UX servers, one
Itanium and the other PA-RISC, both running Oracle 9i, HP-UX 11.11, Perl 5.8 and
with gcc 3.4.2.
Installation and use of DBI/DBD-Oracle on the Itanium server was easy, with NO
problems. The installation on the PA-RISC system seemed simple, but any program
generate the following errors
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
/usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
install_driver(Oracle) failed: Can't load
'/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Oracle.sl'
for modu
le DBD::Oracle: Exec format error at
/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
If I add
export LD_PRELOAD=/usr/lib/libcl.2
then I get
install_driver(Oracle) failed: Can't load
'/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Oracle.sl'
for modu
le DBD::Oracle: Exec format error at
/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
I have checked google, Readme files and I am at aloss at what to do next.
Any ideas
Simon
--
Simon Windsor
Eml: simon.windsor [at] cornfield.org.uk
Tel: 01454 617689
Mob: 07960 321599
Re: New install for DBD-Oracle in HP-UX
Read the README.hpux...
Bottom line: You are going to have to build your own perl.
You need perl linked with pthread and one other library I cann't
remember of the top of my head. But its in the README.hpux.
Lincoln
On Fri, 2004-12-17 at 13:33 +0000, Simon Windsor wrote:
> Hi
>
> I am pulling my hair out with a simple install. I have two HP-UX servers, one
> Itanium and the other PA-RISC, both running Oracle 9i, HP-UX 11.11, Perl 5.8 and
> with gcc 3.4.2.
>
> Installation and use of DBI/DBD-Oracle on the Itanium server was easy, with NO
> problems. The installation on the PA-RISC system seemed simple, but any program
> generate the following errors
>
> /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
> /usr/lib/libcl.2
> /usr/lib/dld.sl: Exec format error
> install_driver(Oracle) failed: Can't load
> '/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Oracle.sl'
> for modu
> le DBD::Oracle: Exec format error at
> /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
>
> If I add
>
> export LD_PRELOAD=/usr/lib/libcl.2
>
> then I get
>
> install_driver(Oracle) failed: Can't load
> '/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Oracle.sl'
> for modu
> le DBD::Oracle: Exec format error at
> /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
>
> I have checked google, Readme files and I am at aloss at what to do next.
>
> Any ideas
>
> Simon
>
> --
> Simon Windsor
> Eml: simon.windsor [at] cornfield.org.uk
> Tel: 01454 617689
> Mob: 07960 321599
>
>
Re: New install for DBD-Oracle in HP-UX
Hi
I have already the file, README.hpux, and it does not appear address this
problem.
I have come to realise that the supplied Perl doesn't support threads and, as
you have suggested, needs rebuilding. The annoying aspect this I have two
servers running Oracle 9.2.0.5, running latest versions of HP-UX 11i. The
Itanium one works fine, teh PA-RISC not. It seems that different configure
options are used to make Perl for the two releases.
Finally, I'll try an old release of gcc, the one used to make Perl (by HP) and
see if that addresses issue, if not I'll have to make perl.
Thanks for the advise
Simon
ps I have never had this problem with Sun or Linux
On Friday 17 December 2004 20:35, Lincoln A. Baxter wrote:
> Read the README.hpux...
>
> Bottom line: You are going to have to build your own perl.
> You need perl linked with pthread and one other library I cann't
> remember of the top of my head. But its in the README.hpux.
>
> Lincoln
>
> On Fri, 2004-12-17 at 13:33 +0000, Simon Windsor wrote:
> > Hi
> >
> > I am pulling my hair out with a simple install. I have two HP-UX servers,
> > one Itanium and the other PA-RISC, both running Oracle 9i, HP-UX 11.11,
> > Perl 5.8 and with gcc 3.4.2.
> >
> > Installation and use of DBI/DBD-Oracle on the Itanium server was easy,
> > with NO problems. The installation on the PA-RISC system seemed simple,
> > but any program generate the following errors
> >
> > /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local
> > Storage: /usr/lib/libcl.2
> > /usr/lib/dld.sl: Exec format error
> > install_driver(Oracle) failed: Can't load
> > '/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Or
> >acle.sl' for modu
> > le DBD::Oracle: Exec format error at
> > /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
> > at (eval 1) line 3
> > Compilation failed in require at (eval 1) line 3.
> > Perhaps a required shared library or dll isn't installed where expected
> >
> > If I add
> >
> > export LD_PRELOAD=/usr/lib/libcl.2
> >
> > then I get
> >
> > install_driver(Oracle) failed: Can't load
> > '/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/ DBD/Oracle/Or
> >acle.sl' for modu
> > le DBD::Oracle: Exec format error at
> > /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/DynaLoader.pm line 229.
> > at (eval 1) line 3
> > Compilation failed in require at (eval 1) line 3.
> > Perhaps a required shared library or dll isn't installed where expected
> >
> > I have checked google, Readme files and I am at aloss at what to do next.
> >
> > Any ideas
> >
> > Simon
> >
> > --
> > Simon Windsor
> > Eml: simon.windsor [at] cornfield.org.uk
> > Tel: 01454 617689
> > Mob: 07960 321599
Re: New install for DBD-Oracle in HP-UX
On Fri, 2004-12-17 at 21:44 +0000, Simon Windsor wrote:
> Hi
>
> I have already the file, README.hpux, and it does not appear address this
> problem.
Ah but it does.
>
> I have come to realise that the supplied Perl doesn't support threads and, as
> you have suggested, needs rebuilding.
Exactly, what the README says!
> The annoying aspect this I have two
> servers running Oracle 9.2.0.5, running latest versions of HP-UX 11i. The
> Itanium one works fine, teh PA-RISC not. It seems that different configure
> options are used to make Perl for the two releases.
Its a totally different binary architecture, and a totally different OS!
> Finally, I'll try an old release of gcc, the one used to make Perl (by HP) and
> see if that addresses issue, if not I'll have to make perl.
Simon,
I would never use a vendor supplied build of perl. It ties you to the
vendor's compiler, the vendor's build options, the vendor's file system
layout, it is often antique... at least 2 or more years out of date, and
it makes it much more difficult to do OS upgrades, because things _will_
break... and you will wonder why... ESPECIALLY in HPUX-land! Why would
you want to overlay site built software into the vendors delivered file
system. Thats just asking for trouble. I've seen it over and over.
I believe you will find that even when you use the old release of gcc,
that the perl you are trying to use, is not linked with the right
libraries to be able to dynamically load Oracle.sl, which is linked with
Oracle shared libraries, which ARE linked with these libraries. I know
you said you read the README, but I think you missed the point. Save
your self the trouble: download perl, and build it. It really takes less
time than it took to right this email. (You can even hack up for your
environment the makefile I provided in the README). If you want it to
work on HP, you are going to do this sooner or later.
Oh, and FWIW (I might as well rant about this for a moment): HP's
support for perl is really awful. I was able to get Openview::Message
(http://search.cpan.org/~lbaxter/Openview-Message/) to build and link
with the Openview API libraries on Sun, but _not_ on their own platform
(HPUX). So on that platform it falls back to using the CLI command
opcmsg. HP would not even provide support to my employer (a large US
Bank) who had MANY licenses of Openview under support agreements. They
just said "We don't support perl". The bank is now pretty committed to
IBM's tools... (though not for this reason I am sure).
Lincoln