Perl模块的安装
时间:2009-01-15 来源:r_a
# perl -e 'use Curses'
# perl -e 'use DBI'
# perl -e 'use DBD::mysql' 没有输出就是模块已经安装了,有错误就是相应的模块没有安装。 除以源码安装之后,还可以用perl提供的工具自动安装:
CPAN installation
Installation of DBD::mysql can be incredibly easy:
cpan install DBD::mysql
If you are using the CPAN module for the first time, just answer the questions by accepting the defaults which are fine in most cases. If you are using an older version of Perl, you might instead need a
perl -MCPAN -e shell install DBD::mysql
If you cannot get the CPAN module working, you might try manual installation. If installation with CPAN fails because the your local settings have been guessed wrong, you need to ensure MySQL's mysql_config is on your path (see SOURCE INSTALLATION) or alternatively create a script called mysql_config. This is described in more details later. Configuration
http://cpansearch.perl.org/src/CAPTTOFU/DBD-mysql-4.010/INSTALL.html#red_hat_linux