首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(1) | 引用(3) | 阅读2645次
perl1编程mysql安装

访问: 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.


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/perl1dbi.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1126578269

2005年9月13日10:24星期二  [Dev开发] 追踪此文的RSS
晓风在 2006年6月29日16:52星期四 评论:
Thanks for the information. This is very useful


---
虚拟主机

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告





统计信息
[Yippee]||[统计]||日志:2143
在线: 14||用户: 2635 [列表]
今日:491||到访:3654276
Rss:||评论:1668

最新日志

最新评论

友情链接

日历
342009 - 0734
   1234
567891011
12131415161718
19202122232425
262728293031 

最新引用
搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8