Editorial_Response has asked for the wisdom of the Perl Monks concerning the following question:
My installation of RedHat Linux server 5.3 came with PERL 5.8. I updated my version of PERL to 5.12, and my copy of PERL resides at /root/localperl/bin/perl
I've attempted to install DBD, DBI and Net::MySQL and all failed. It is possible that the reason why the installs are failing is common to all three so I am asking you to look over and respond as to what I may be doing wrong in the installation of Net::MySQL.
I'm following the instructions that come with Net::MySQL - Pure Perl MySQL network protocol interface. Any attempts to use perl without the full path to /root fails because the initial installation was written over by an incorrect installation of version 5.12 on /usr/bin/perl
[root@localhost localperl]# /root/localperl/bin/perl -v This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-li +nux ------------------------------------- [root@localhost bin]# pwd /root/localperl/bin [root@localhost bin]# cd .. [root@localhost localperl]# ls bin lib man [root@localhost localperl]# ls bin lib man Net-MySQL-0.09 [root@localhost localperl]# cd Net-MySQL-0.09/ [root@localhost Net-MySQL-0.09]# ls Changes Makefile.PL MANIFEST META.yml MySQL.pm README script t [root@localhost Net-MySQL-0.09]# root/localperl/bin/perl Makefile.PL P +REFIX=/root/localperl/bin/perl/lib bash: root/localperl/bin/perl: No such file or directory [root@localhost Net-MySQL-0.09]# root/localperl/bin/perl Makefile.PL P +REFIX=/root/localperl bash: root/localperl/bin/perl: No such file or directory [root@localhost Net-MySQL-0.09]# /root/localperl/bin/perl Makefile.PL +PREFIX=/root/localperl Checking if your kit is complete... Looks good Writing Makefile for Net::MySQL [root@localhost Net-MySQL-0.09]# make cp MySQL.pm blib/lib/Net/MySQL.pm Manifying blib/man3/Net::MySQL.3 [root@localhost Net-MySQL-0.09]# make test PERL_DL_NONLAZY=1 /root/localperl/bin/perl "-MExtUtils::Command::MM" " +-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/0.load.t ........ Can't locate Digest/SHA1.pm in @INC (@INC contains +: /root/localperl/Net-MySQL-0.09/blib/lib /root/localperl/Net-MySQL-0 +.09/blib/arch /root/localperl/lib/site_perl/5.12.2/x86_64-linux /root +/localperl/lib/site_perl/5.12.2 /root/localperl/lib/5.12.2/x86_64-lin +ux /root/localperl/lib/5.12.2 .) at /root/localperl/Net-MySQL-0.09/bl +ib/lib/Net/MySQL.pm line 681. BEGIN failed--compilation aborted at /root/localperl/Net-MySQL-0.09/bl +ib/lib/Net/MySQL.pm line 681. Compilation failed in require at t/0.load.t line 3. BEGIN failed--compilation aborted at t/0.load.t line 3. t/0.load.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests t/1.password32.t .. Can't locate Digest/SHA1.pm in @INC (@INC contains +: /root/localperl/Net-MySQL-0.09/blib/lib /root/localperl/Net-MySQL-0 +.09/blib/arch /root/localperl/lib/site_perl/5.12.2/x86_64-linux /root +/localperl/lib/site_perl/5.12.2 /root/localperl/lib/5.12.2/x86_64-lin +ux /root/localperl/lib/5.12.2 .) at /root/localperl/Net-MySQL-0.09/bl +ib/lib/Net/MySQL.pm line 681. BEGIN failed--compilation aborted at /root/localperl/Net-MySQL-0.09/bl +ib/lib/Net/MySQL.pm line 681. Compilation failed in require at t/1.password32.t line 3. BEGIN failed--compilation aborted at t/1.password32.t line 3. t/1.password32.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 4/4 subtests Test Summary Report ------------------- t/0.load.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 2 tests but ran 0. t/1.password32.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 4 tests but ran 0. Files=2, Tests=0, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.03 cusr + 0.00 csys = 0.04 CPU) Result: FAIL Failed 2/2 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 [root@localhost Net-MySQL-0.09]#
20101122 Edit: Content restored by Corion
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installation of Net::MySQL
by Mr. Muskrat (Canon) on Dec 03, 2010 at 18:20 UTC |