Page 1 of 1

Install perl -MCPAN -e shell

PostPosted: Mon Nov 05, 2007 4:41 pm
by terrychen
I follow the install manual and install perl -MCPAN -e shell,
But it said as follow ,,,is it correct ?If I am wrong .How to do now ?

install DBI
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.601.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- force install DBD::mysql (must at least have mysqlclientlibs installed)
Running install for module DBD::mysql
Running make for C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... 005.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Net::Telnet
Running install for module Net::Telnet
Running make for J/JR/JROGERS/Net-Telnet-3.03.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .03.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Time::HiRes
Running install for module Time::HiRes
Running make for J/JH/JHI/Time-HiRes-1.9708.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... 708.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/J/JH/JHI/Time-HiRes-1.9708.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Net::Server
Running install for module Net::Server
Running make for R/RH/RHANDOM/Net-Server-0.97.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .97.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/R/RH/RHANDOM/Net-Server-0.97.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Unicode::Map
Running install for module Unicode::Map
Running make for M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... 112.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94. (needed for super list loader Excel)
- install Jcode (needed for super list loader Excel)
Running install for module Jcode
Running make for D/DA/DANKOGAI/Jcode-2.06.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .06.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/D/DA/DANKOGAI/Jcode-2.06.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Spreadsheet::WriteExcel (needed for super list loader Excel)
Running install for module Spreadsheet::WriteExcel
Running make for J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.20.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .20.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.20.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install OLE::Storage_Lite (needed for super list loader Excel)
Running install for module OLE::Storage_Lite
Running make for J/JM/JMCNAMARA/OLE-Storage_Lite-0.14.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .14.tar.gz
Checksum for /root/.cpan/sources/authors/id/J/JM/JMCNAMARA/OLE-Storage_Lite-0.14.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Proc::ProcessTable (needed for super list loader Excel)
Running make for D/DU/DURIST/Proc-ProcessTable-0.41.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .41.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/D/DU/DURIST/Proc-ProcessTable-0.41.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install IO::Scalar (needed for super list loader Excel)
Running make for D/DS/DSKOLL/IO-stringy-2.110.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... 110.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/D/DS/DSKOLL/IO-stringy-2.110.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.
- install Spreadsheet::ParseExcel (needed for super list loader Excel)
Running make for S/SZ/SZABGAB/Spreadsheet-ParseExcel-0.32.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... .32.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/author ... /CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/S/SZ/SZABGAB/Spreadsheet-ParseExcel-0.32.tar.gz ok
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.

PostPosted: Mon Nov 05, 2007 11:23 pm
by ramindia
Hi

i think some mysql client problem

if you installing centos

try yum install mysql*

and install DBI should work

ram

PostPosted: Tue Nov 06, 2007 12:43 am
by terrychen
Dear Sir,
Thanks your answer,But I am used slackware 11
what can I check or reinstall again ?

Terry

PostPosted: Tue Nov 06, 2007 1:29 am
by ramindia
Hi

you need to have mysql client packages
to install DBI

check this
SUBPHASE 3.1: MySQL requirements


ram

Install DBI Fails

PostPosted: Tue Nov 06, 2007 5:16 am
by sanisoft
Hello, I am facing same problem
I am using CentOS 4.5

I also use "yum install mysql* " on your recomendation, but it doesn't not work

cpan> install DBI
Running install for module DBI
Running make for T/TI/TIMB/DBI-1.601.tar.gz

Trying with "/usr/bin/links -source" to get
/T/TI/TIMB/DBI-1.601.tar.gz
Can't use string ("CPAN::Tarzip") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.5/CPAN/Tarzip.pm line 94.

Kindly guide me, what to do

Thanks and Regards

Sani

PostPosted: Tue Nov 06, 2007 6:07 am
by ramindia
Hi

after install that just reboot server

post the results

ram

PostPosted: Tue Nov 06, 2007 1:02 pm
by devafree
Hello

Please try at CPAN prompt: -

>reload index
>reload cpan
>quit

and try it again

regards

devafree

PostPosted: Wed Nov 07, 2007 2:55 am
by terrychen
when i reboot server then
perl -MCPAN -e shell
it show
Always commit changes to config variables to disk? [no] Yes
other is follow next 5 prompts
Then can install other modules

Is it correct ???/for this answer Yes???
Always commit changes to config variables to disk? [no] Yes


Terry

PostPosted: Fri Nov 30, 2007 12:51 pm
by chadahm
Hello All,

I also came across this as well. I'm using CentOS 5 and built mysql from source.

I did as devafree mentioned and also here's what else happened:
reload index
reload cpan
quit
cpan
follow all the defaults and on the './Build install', put the suggested option '--uninst 1'
DBI installed just fine after all that. Also, all other cpan modules installed without error.

Regards,

Chad

may be

PostPosted: Fri Nov 30, 2007 11:51 pm
by eliasferreyra
and you can instal the BDI manual but i think too you have to install Bundle::CPAN manual too

download from http://search.cpan.org/
and put what your lookingfor
and
install so

perl Makefile.PL
make
make test ( i recommend no use make test) :-)
make install
install

do it for

Bundle::CPAN
and DBI and DBD::mysql

and if you ar using mysql 5 or higest install mysql-devel

PostPosted: Sat Dec 01, 2007 4:37 pm
by gardo
If you're using CentOS 5, you can safely use the mysql rpm package included in the distribution. You also need the mysql-devel package to compile some perl modules. No need to install mysql from source. This will save you headaches specially when upgrading.

hello

PostPosted: Sat Dec 01, 2007 6:26 pm
by eliasferreyra
yeah gardo
exactly.....

PostPosted: Sat Dec 01, 2007 10:55 pm
by Op3r
Because it is the Lenten season. Here's some easy steps for centos.

yum -y install mysql-server mysql mysql-devel php-mysql php-devel (for php-eaccelerator)

nano /etc/php.ini

press w to search for memory_limit make it to 48m

then install cpan

:)

Christmas is just around the corner please do not hesitate to send gifts lol I prefer a macbookpro like the 17 inches one joke.

PostPosted: Tue Aug 26, 2008 12:44 pm
by Mika1974
chadahm wrote:Hello All,

reload index
reload cpan
quit
cpan



This did the trick for me under CentOS 5.2.