访问: www.shengfang.org
http://ppm.activestate.com/PPMPackages/zips/
ActivePerl 5xx (e.g. ActivePerl 5_005.522)
http://ppm.activestate.com/PPMPackages/zips/5xx-builds-only/
DBD-Mysql.zip 、 DBI.zip
看看里面的说明: www.shengfang.org
To install this ActiveState PPM package, run the following command
in the current directory:
ppm install DBI.ppd
结果:www.shengfang.org
Error: no suitable installation target found for package DBI.
以为是路径的问题,直接修改 DBI.ppd
<SOFTPKG NAME="DBI" VERSION="1,14,0,0">
<TITLE>DBI</TITLE>
<ABSTRACT>Database independent interface for Perl</ABSTRACT>
<AUTHOR>Tim Bunce (dbi-users at fugue dot com)</AUTHOR>
<IMPLEMENTATION>
<OS NAME="MSWin32" />
<ARCHITECTURE NAME="MSWin32-x86-object" />
<CODEBASE HREF="x86/DBI.tar.gz" />
</IMPLEMENTATION>
</SOFTPKG>
还是不行
最后干脆这样,先运行PPM
C:\DBI>ppm www.shengfang.org
PPM - Programmer's Package Manager version 3.2.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a division of Sophos.
Entering interactive shell. Using Term::ReadLine::Perl as readline library.
Type 'help' to get started.
再install DBI www.shengfang.org
ppm> install dbi www.shengfang.org
====================
Install 'dbi' version 1.48 in ActivePerl 5.8.7.813.
====================
Downloaded 548475 bytes.
Extracting 73/73: blib/arch/auto/DBI/Driver_xst.h
Installing O:\php\perl\site\lib\auto\DBI\dbd_xsh.h
Installing O:\php\perl\site\lib\auto\DBI\DBI.bs
Installing O:\php\perl\site\lib\auto\DBI\DBI.dll
DBD-Mysql.ppd 同样 www.shengfang.org
To install this ActiveState PPM package, run the following command
in the current directory:
ppm install DBD-Mysql.ppd
Error: no suitable installation tar www.shengfang.org get found for package DBD-Mysql.
Successfully installed dbd-mysql version 3.0002 in ActivePerl 5.8.7.813.
ppm> exit www.shengfang.org
C:\DBD-Mysql>ppm install DBD-Mysql.ppd
Note: Package 'DBD-mysql' is already installed.
这是人家的办法:
SOLUTION
--------------------------------------------------------------------------------
I have successfully installed DBI and DBD-mysql onto my Windows XP machine (which does not have a 'net connection).
Here are the steps I took to do it:
Go to http://ppm.activestate.com/PPMPackages/zips/, choose your version of ActivePerl, and choose your platform
Scroll down to find the package(s) you're looking for (in my case, I found DBI.zip and DBD-mysql.zip at http://ppm.activestate.com/PPMPacka...s-only/Windows/).
Download the package(s) into a directory you'll be able to find later on.
Unzip the package(s) into your local repository directory (mine is C:\Perl\repo on the XP machine).
If you haven't done so already, denote this directory as a repository directory within ppm. I labeled my repository "local" (minus double quotes). Here is the command I used to add my repository: ppm repository add local C:\Perl\repo
Once the directory is added, search your repositories for all packages: ppm search * I got a list of the two packages in my "local" repository (DBI and DBD-mysql).
Once I had the names, I installed each one. I did NOT edit the .ppd file that came bundled in the .zip file.
First, I installed DBI: ppm install DBI www.shengfang.org
Then I installed DBD-mysql: ppm install DBD-mysql
All done! Start using the packages. It's that easy.
Note: If you are already running from within ppm (you'll be able to tell because your command prompt will start with ppm>), then leave off the ppm in the command you type to carry out any actions. (Example: ppm> repository add local C:\Perl\repo instead of ppm> ppm repository add local C:\Perl\repo.) www.shengfang.org
Please let me know if this has been a help to you. If you have any problems with these instructions, please reply to this post.