1825987 Members
3597 Online
109690 Solutions
New Discussion

perl - dbi

 
ludette coronel
Occasional Contributor

perl - dbi

what version (1.50?) should I download and where for perl DBI for hpux perl 5.8.3?

I got a version from CPAN http://www.perl.com/CPAN/modules/by-module/DBI/ but when I install, it fails with:
# make install
Make: Don't know how to make install. Stop.
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor

Re: perl - dbi

There is a README you know?
It doesn't work like that. After unpacking, you will have to build and test before install

# cd /tmp
# gzip -d # cd DBI-1.50
# perl Makefile.PL
# make
# make test
# make install

be sure to also examine README.hpux!

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
ludette coronel
Occasional Contributor

Re: perl - dbi

oops - pointing to wrong (old) perl version...now it works but I get this error when I did make

cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" +Z "-I/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi/CORE" Perl.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 422: Unknown option "f" ignored.
(Bundled) cc: warning 480: The +Onolimit option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Opromote_indirect_calls option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/perlio.h", line 108: error 4065: Recursion in macro "PerlIO".
*** Error exit code 1

How to fix?
H.Merijn Brand (procura
Honored Contributor

Re: perl - dbi

XS modules cannot be build with the braindead bundled C compiler, you need a ANSI C compiler, and preferably the one that was used to build perl with. End of story.

You can of course also decide to uninstall this perl, and choose a distribution that already includes a recent DBI, like my distributions.

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
ludette coronel
Occasional Contributor

Re: perl - dbi

I used gcc instead of the ansi cc and it worked. Thanks much for your help!
I did:
/opt/perl/bin/change_config_pm gcc to make it use gcc