Chinaunix

标题: DBD::mysqll在XP下怎么安装? [打印本页]

作者: huangruir    时间: 2008-03-05 20:10
标题: DBD::mysqll在XP下怎么安装?
DBD::mysqll在XP下怎么安装?
我用PPM安装了,但是测试的时候就是不行,而且写了个脚本测试DBI的driver时,没有mysql,有CSV,DBM,EXAMPLEP,file,gofer等,就是没有mysql,是怎么回事呢??
作者: freeand    时间: 2008-03-05 23:03
帖代码...
同时把错误信息也帖出来...
作者: huangruir    时间: 2008-03-07 00:18
标题: 代码
是这样的,
ppm>intall DBI
no missing package to install
ppm>install DBD::mysql
no missing packges to install

然后我就运行一个程序,他给我的报错是:
install_driver(mysql) failed:can't locate DBD/mysql.pm in @ING(@ING contains: c:/perl/site/lib c:/perl/lib .) at (eval 4) line 3.
perhaps the DBD::mysql perl module has not been fully installed, or perhaps the capitalisation of 'mysql' is not right.
available drivers: CSV ,DBM,ExampleP,File,Gofer,Proxy,RAM,SQLite,Sponge.
at E:\perl_dbi_test_code\queries.pl line 10
我不知道怎么查那个东西到底算怎么安上了?为什么ppm的时候没有报错。
说明:我的perl 是activeperl 10, DBI-1.602,mysql-5.0.45-win-src.tar,DBD-mysql-4.006.tar
作者: freeand    时间: 2008-03-07 02:31
原帖由 huangruir 于 2008-3-7 00:18 发表
是这样的,
ppm>intall DBI
no missing package to install
ppm>install DBD::mysql
no missing packges to install

然后我就运行一个程序,他给我的报错是:
install_driver(mysql) failed:can't loca ...


很明显,ppm不是提示了吗,你没有安装上去。


http://theoryx5.uwinnipeg.ca/ppms/

Packages in this directory may be installed by giving the following command at a DOS prompt:

C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/package.ppd

where package.ppd is the name of the package listed below (with a .ppd extension added). Alternatively, you can add repositories to the ppm utility (see the help facility within the ppm shell for the syntax of how to do so); doing this allows you to search for and install packages within the ppm shell using the syntax:

  ppm> search something
  ppm> install Some-Package
作者: huangruir    时间: 2008-03-07 18:17
谢谢你的帮助。由于我的是perl10,我运行了DOS命令:
C:\>ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.ppd
结果是:
ppm.bat install failed: no ppd found at http://cpan.uwinnipeg.ca/ppmpackage/10xx/package.ppd
这是怎么回事呢??
作者: freeand    时间: 2008-03-07 19:07
原帖由 huangruir 于 2008-3-7 18:17 发表
谢谢你的帮助。由于我的是perl10,我运行了DOS命令:
C:\>ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.ppd
结果是:
ppm.bat install failed: no ppd found at http://cpan.uwinnipeg.ca ...



C:\>ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/DBD-mysql.ppd

[ 本帖最后由 freeand 于 2008-3-7 19:08 编辑 ]
作者: huangruir    时间: 2008-03-07 23:53
谢谢仁兄咯,我现在装上了dbd:mysql。
作者: huangruir    时间: 2008-03-07 23:54
那要是安装DBI怎么写命令啊?
不好意思,我刚入门,dos命令还不是很清楚。
谢谢
作者: cnstudent    时间: 2008-03-08 19:29
用5.6
作者: zhangzhangg    时间: 2008-03-08 19:35
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2