MySQL Forums
Forum List  »  Perl

Problem while running "perl -e shell -MCPAN "
Posted by: Donovan Hsieh
Date: October 20, 2007 09:30AM

There is a problem while running the following perl update:

# perl -e shell -MCPAN
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install DBD::mysql
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 19 Oct 2007 10:36:35 GMT
Running install for module DBD::mysql
Running make for C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DBD-mysql-4.005/
DBD-mysql-4.005/ChangeLog
DBD-mysql-4.005/constants.h
DBD-mysql-4.005/dbdimp.c
DBD-mysql-4.005/dbdimp.h
DBD-mysql-4.005/eg/
DBD-mysql-4.005/eg/prepare_memory_usage.pl
DBD-mysql-4.005/eg/proc_example1.pl
DBD-mysql-4.005/eg/proc_example2.pl
DBD-mysql-4.005/eg/proc_example3.pl
DBD-mysql-4.005/INSTALL.html
DBD-mysql-4.005/lib/
DBD-mysql-4.005/lib/Bundle/
DBD-mysql-4.005/lib/Bundle/DBD/
DBD-mysql-4.005/lib/Bundle/DBD/mysql.pm
DBD-mysql-4.005/lib/DBD/
DBD-mysql-4.005/lib/DBD/mysql/
DBD-mysql-4.005/lib/DBD/mysql/GetInfo.pm
DBD-mysql-4.005/lib/DBD/mysql/INSTALL.pod
DBD-mysql-4.005/lib/DBD/mysql.pm
DBD-mysql-4.005/Makefile.PL
DBD-mysql-4.005/Makefile.PL.embedded
DBD-mysql-4.005/MANIFEST
DBD-mysql-4.005/MANIFEST.SKIP
DBD-mysql-4.005/META.yml
DBD-mysql-4.005/myld
DBD-mysql-4.005/mysql.xs
DBD-mysql-4.005/README
DBD-mysql-4.005/t/
DBD-mysql-4.005/t/00base.t
DBD-mysql-4.005/t/10connect.t
DBD-mysql-4.005/t/20createdrop.t
DBD-mysql-4.005/t/30insertfetch.t
DBD-mysql-4.005/t/35limit.t
DBD-mysql-4.005/t/35prepare.t
DBD-mysql-4.005/t/40bindparam.t
DBD-mysql-4.005/t/40bindparam2.t
DBD-mysql-4.005/t/40blobs.t
DBD-mysql-4.005/t/40catalog.t
DBD-mysql-4.005/t/40listfields.t
DBD-mysql-4.005/t/40nulls.t
DBD-mysql-4.005/t/40numrows.t
DBD-mysql-4.005/t/41bindparam.t
DBD-mysql-4.005/t/41blobs_prepare.t
DBD-mysql-4.005/t/42bindparam.t
DBD-mysql-4.005/t/50chopblanks.t
DBD-mysql-4.005/t/50commit.t
DBD-mysql-4.005/t/60leaks.t
DBD-mysql-4.005/t/70takeimp.t
DBD-mysql-4.005/t/75supported_sql.t
DBD-mysql-4.005/t/80procs.t
DBD-mysql-4.005/t/insertid.t
DBD-mysql-4.005/t/lib.pl
DBD-mysql-4.005/t/multi_statement.t
DBD-mysql-4.005/t/mysql.dbtest
DBD-mysql-4.005/t/param_values.t
DBD-mysql-4.005/t/prepare_noerror.t
DBD-mysql-4.005/t/texecute.t
DBD-mysql-4.005/t/utf8.t
DBD-mysql-4.005/TODO
Removing previously used /root/.cpan/build/DBD-mysql-4.005

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz

Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install

cpan>

Options: ReplyQuote


Subject
Written By
Posted
Problem while running "perl -e shell -MCPAN "
October 20, 2007 09:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.