HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl/DBD/DBI on 11i
Operating System - HP-UX
1834967
Members
1776
Online
110072
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-07-2002 02:57 PM
03-07-2002 02:57 PM
Perl/DBD/DBI on 11i
I have a new rp7400 (N4000) which came installed with HP-UX 11i (B.11.11.0112). I'm trying to get a working Perl/DBI/DBD combination so I can access my DB using Perl. But I keep running into compilation errors and arguments about the version of Perl pre-installed with HPUX11i.
Can anyone recommend a set of files to install on here? Should I remove the default Perl package and go with a different one? And do I need to install gcc (which version?) or can you compile Perl with the HP ANSI C compiler?
Any help here would be appreciated. The simpler, the better.
Thanks,
Mike Simone
Can anyone recommend a set of files to install on here? Should I remove the default Perl package and go with a different one? And do I need to install gcc (which version?) or can you compile Perl with the HP ANSI C compiler?
Any help here would be appreciated. The simpler, the better.
Thanks,
Mike Simone
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2002 01:52 AM
03-08-2002 01:52 AM
Re: Perl/DBD/DBI on 11i
Much depends on what you *have* and what you *want*.
All precompiled perl binaries I know of (including the full version with packages on the HP Applications CD from Sep 2001) are build with some version of gcc. This enables users to add their own XS based modules like DBI and DBD-*** (you didn't mention which DBD you want to use).
If you *do* have HP C-ANSI-C, I would advice to build your own perl using HPc. There are some advantages in that approach: first of all, you get a perl that is build optimized on your architecture (hppa-2.0) and fits better to your shared libraries, and second - probably more important - you can build your extension modules using HPc, which you are probably familiar with, and do not have to install a gcc version.
Using HPc also gives you the oportunity to *choose* if you need/want to use 64bit environment. The current development release (perl-5.7.3) builds 64bit clean out of the box on HP-UX 11.00. You *do* have to care about this since some databases (IIRC Ingres) only supports 64bit environment in their new shipped libraries, and if you build a 32bit perl, you cannot add a 64bit DBD-Ingres. Problems are sure to be hit if you want to connect a 32bit only database driver (DBD-Unify) to a 64bit only driver. This will not be possible. (Use '-Duse64bitall' in the Configure line if you want to build a 64bit perl)
Both versions described below support threads, but the 5.73 (5.8.0 tobe) is richer in thread features and more thread safe and stable. (Use '-Dusethreads -Duseithreads' in the Configure line to enable threads. Prebuild binary from HP's application CD is a threaded perl build)
So to make a long story short:
# cd /work
# wget ftp://download.xs4all.nl/pub/mirror/CPAN/src/5.0/perl-5.6.1.tar.gz
# gzip -d < perl-5.6.1.tar.gz | tar xf -
# cd perl-5.6.1
# Configure -Dusedevel -Duseperlio -des
# make
# make test
# make install
Or for the latest development release (still marked unstable, but in fact it is pretty stable). If you do need to support Unicode from/to your database, go for this one, or wait one more month for 5.8.0
# cd /work
# wget ftp://download.xs4all.nl/pub/mirror/CPAN/src/5.0/perl-5.7.3.tar.gz
# gzip -d < perl-5.7.3.tar.gz | tar xf -
# cd perl-5.7.3
# Configure -Dusedevel -Duseperlio -des
# make
# make test
# make install
All precompiled perl binaries I know of (including the full version with packages on the HP Applications CD from Sep 2001) are build with some version of gcc. This enables users to add their own XS based modules like DBI and DBD-*** (you didn't mention which DBD you want to use).
If you *do* have HP C-ANSI-C, I would advice to build your own perl using HPc. There are some advantages in that approach: first of all, you get a perl that is build optimized on your architecture (hppa-2.0) and fits better to your shared libraries, and second - probably more important - you can build your extension modules using HPc, which you are probably familiar with, and do not have to install a gcc version.
Using HPc also gives you the oportunity to *choose* if you need/want to use 64bit environment. The current development release (perl-5.7.3) builds 64bit clean out of the box on HP-UX 11.00. You *do* have to care about this since some databases (IIRC Ingres) only supports 64bit environment in their new shipped libraries, and if you build a 32bit perl, you cannot add a 64bit DBD-Ingres. Problems are sure to be hit if you want to connect a 32bit only database driver (DBD-Unify) to a 64bit only driver. This will not be possible. (Use '-Duse64bitall' in the Configure line if you want to build a 64bit perl)
Both versions described below support threads, but the 5.73 (5.8.0 tobe) is richer in thread features and more thread safe and stable. (Use '-Dusethreads -Duseithreads' in the Configure line to enable threads. Prebuild binary from HP's application CD is a threaded perl build)
So to make a long story short:
# cd /work
# wget ftp://download.xs4all.nl/pub/mirror/CPAN/src/5.0/perl-5.6.1.tar.gz
# gzip -d < perl-5.6.1.tar.gz | tar xf -
# cd perl-5.6.1
# Configure -Dusedevel -Duseperlio -des
# make
# make test
# make install
Or for the latest development release (still marked unstable, but in fact it is pretty stable). If you do need to support Unicode from/to your database, go for this one, or wait one more month for 5.8.0
# cd /work
# wget ftp://download.xs4all.nl/pub/mirror/CPAN/src/5.0/perl-5.7.3.tar.gz
# gzip -d < perl-5.7.3.tar.gz | tar xf -
# cd perl-5.7.3
# Configure -Dusedevel -Duseperlio -des
# make
# make test
# make install
Enjoy, Have FUN! H.Merijn
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP