Chinaunix首页 | 论坛 | 博客
  • 博客访问: 246895
  • 博文数量: 61
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 800
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-14 15:18
文章分类

全部博文(61)

文章存档

2011年(4)

2010年(5)

2009年(10)

2008年(42)

我的朋友

分类:

2009-01-15 12:01:10

检查perl模块:
# perl -e 'use Curses'
# perl -e 'use DBI'
# perl -e 'use DBD::mysql'
 
没有输出就是模块已经安装了,有错误就是相应的模块没有安装。
 
除以源码安装之后,还可以用perl提供的工具自动安装:
 

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 ) or alternatively create a script called mysql_config. This is described in more details later.

 
阅读(996) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~