Operating System - HP-UX
1748246 Members
3436 Online
108760 Solutions
New Discussion юеВ

Need DBD for mysql for Perl 5.8.8

 
wjhopkins
Occasional Advisor

Need DBD for mysql for Perl 5.8.8

Have a request from the mysql admin person to install the DBI and DBD modules for perl. I install the Perl 5.8.8 which had the DBI piece. Where do I get the DBD for mysql module? I'm not an expert Perl user.

thanks
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Need DBD for mysql for Perl 5.8.8

H.Merijn Brand (procura
Honored Contributor

Re: Need DBD for mysql for Perl 5.8.8

Even easier, from the command prompt type

# cpan DBD::mysql

and answer all the questions.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
wjhopkins
Occasional Advisor

Re: Need DBD for mysql for Perl 5.8.8

Thanks for the tips.
So I went to web site cpan and don't find any binaries for the DBD mysql for HP-UX 11.23. I did download the HP gcc package because it appears I need to compile the DBD from source code. I also tried the command "cpan DBD::mysql" but had this error message. This server is behind a firewall.
debsaa01:/opt/perl/bin # ./cpan DBD::mysql
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
Warning: Found only 0 objects in /root/.cpan/Metadata
CPAN: LWP::UserAgent loaded ok (v5.819)
CPAN: Time::HiRes loaded ok (v1.86)
Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist
push ftp://myurl/'

Could not fetch authors/01mailrc.txt.gz
Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist
push ftp://myurl/'

Could not fetch modules/02packages.details.txt.gz
Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist
push ftp://myurl/'

Could not fetch modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Warning: Cannot install DBD::mysql, don't know what it is.
Try the command

i /DBD::mysql/

to find objects with matching identifiers.

Also tried to compile using the cc that's standard on the system but it's not working either.
any suggestion? Is there any HP depots that I can download the compiled code from?
H.Merijn Brand (procura
Honored Contributor

Re: Need DBD for mysql for Perl 5.8.8

And what happened when you followed the instructions? Pich the best-fit from http://www.perl.com/CPAN-local//SITES.html

Asuming you're in Japan, that might be:

# cpan

cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.

cpan[1]> o conf urllist push http://ftp.jaist.ac.jp/pub/CPAN/
cpan[2]> o conf commit
cpan[3]> exit
# cpan DBD::mysql

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn