- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DBD and DBI modules for perl
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
Discussions
Discussions
Discussions
Forums
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
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
тАО01-29-2007 08:07 AM
тАО01-29-2007 08:07 AM
DBD and DBI modules for perl
Does anyone have perl5.X version which has DBD and DBI modules for Oracle in swdepot format or tar. What I am looking for is not to run any "Make" stuff, just install from a bundle and it should work fine.
After installation which folder does the DBD and DBI modules get installed. I have tried installing ourmy apps person was complaining that the modules were missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2007 08:10 AM
тАО01-29-2007 08:10 AM
Re: DBD and DBI modules for perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2007 09:17 AM
тАО01-29-2007 09:17 AM
Re: DBD and DBI modules for perl
I can assure you that you will not find a DBD::Oracle precompiled available anywhere. Not in depot or any other binary form.
1. The C-compiler should be the same as you are using to link Oracle
2. The Oracle version should be the same
3. The Oracle installation path should be the same ($ORACLE_HOME)
4. The Oracle bitness (32bit or 64bit) should be the same.
*IF* you happen to have all of these the same as I have, I could give you as DBD::Oracle.
1. HP C-ANSI-C
2. Oracle 8.1.7.4/32 on 11.00 (PA-RISC), Oracle 9.2.0.1/64 on 11.11 (PA-RISC), Oracle 9.2.0.7 on 11.23 (Itanium2)
3. /pro/oracle/v817, /pro/oracle/v920, /pro/oracle/v920
4. 32bit on 11.00, 64bit on 11.11 and 11.23
Only if all 4 match, I can help.
That is why you have to build it yourself. And please read README.hpux before you start.
Enjoy, Have FUN! H.merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2007 05:01 PM
тАО01-29-2007 05:01 PM
Re: DBD and DBI modules for perl
Thank you vey much for the information. Unfortunately I do not have the same setup. My oracle_home is different and I have HPUX 11.11 and oracle 8.1.7.4.
I could successfuly compile DBI module, but while trying to complie DBD module it passes
perl Makefile.PL and make. When I do make test I get the following message. I am doing these as root user hope this is correct.
PERL_DL_NONLAZY=1 /opt/perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base................/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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 12:40 AM
тАО01-30-2007 12:40 AM
Re: DBD and DBI modules for perl
t/01base................/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
this is most likely cause by mixing 32bit perl using /usr/lib/dld.sl trying to access/load 64bit Oracle.
Which is strange in the sense that most Oracle 8 ports are 32bit.
Are you *SURE* you installed a perl that was built for your system?
# perl -V:archname.*
what does that show?
# perl -MFile::Find -le'find(sub{/^Oracle.s.$/and die qx{file $_}},@INC)'
Oracle.sl: PA-RISC2.0 shared library -not stripped
# perl -V:archname
archname='PA-RISC2.0';
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 04:25 AM
тАО01-30-2007 04:25 AM
Re: DBD and DBI modules for perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 04:31 AM
тАО01-30-2007 04:31 AM
Re: DBD and DBI modules for perl
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 06:17 AM
тАО01-30-2007 06:17 AM
Re: DBD and DBI modules for perl
perl -V:archname
archname='PA-RISC2.0-thread-multi-LP64'
archname64='LP64'
This time also DBI went fine. But DBD fails at "Make test" with the following error. With regards to the failed to load Oracle extension / library message, I can see the Oracle.sl library at the requested path.
PERL_DL_NONLAZY=1 /opt/perl_64/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base................/usr/lib/pa20_64/dld.sl: '/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' .
/usr/lib/pa20_64/dld.sl: '/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' defined in a dynamically.
/usr/lib/pa20_64/dld.sl: '/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' defined in a dynamically.
/usr/lib/pa20_64/dld.sl: '/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' defined in a dynamically.
Failed to load Oracle extension and/or shared libraries:
install_driver(Oracle) failed: Can't load '/var/hp/perl/DBD-Oracle-1.19/blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle.
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 06:44 AM
тАО01-30-2007 06:44 AM
Re: DBD and DBI modules for perl
To be clear, DBD::Oracle needs a threads library, but not a threaded perl.
Where did you get this perl, and what is it's version?
# perl -v
You could try my perl builds, but I don't know where the search leads.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 08:23 AM
тАО01-30-2007 08:23 AM
Re: DBD and DBI modules for perl
I have checked your site and for HPUX 11.11 I could find only "perl B.5.6.1.F from 5012-7838 06-2003 4/4" compiled using HP ANSI/C. Can i try with this.
#perl -v
This is perl, v5.8.2 built for PA-RISC2.0-thread-multi-LP64
(with 25 registered patches, see perl -V for more detail)
Copyright 1987-2003, Larry Wall
Binary build 808 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Dec 7 2003 15:28:40
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 03:26 PM
тАО01-30-2007 03:26 PM
Re: DBD and DBI modules for perl
/usr/lib/dld.sl: Exec format error
>Merijn: this is most likely cause by mixing 32bit perl using /usr/lib/dld.sl trying to access/load 64bit Oracle.
This has nothing to do with 64 bit. It is as it says, you can't dynamically load libcl or libpthread. You must link your application with -lcl. Or use LD_PRELOAD=/usr/lib/libcl.2.
>/usr/lib/pa20_64/dld.sl: '/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' .
The same error again with +DD64.
>Merijn: I bet that is because op the threaded perl you're running.
Well of course, it said that in the error message. ;-)
Adding -lcl will make the error go away. Whether perl will work correctly while threaded is a different story.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 06:18 PM
тАО01-30-2007 06:18 PM
Re: DBD and DBI modules for perl
Check here
http://mirrors.develooper.com/hpux/#Perl
and here
http://mirrors.develooper.com/hpux/downloads.html#hpux1111
Enjoy, Have FUNE! H.Merijn