安装ActivePerl 5.10之后,按照提示安装mod_perl模块。
ActivePerl 10xx Win32 PPM packages
This area contains prebuilt ppm packages for Win32 for ActivePerl builds 10xx, based on perl-5.10. If you are looking for packages for ActivePerl builds 6xx, based on perl-5.6, see http://theoryx5.uwinnipeg.ca/ppmpackages/, or for ActivePerl builds 8xx, based on perl-5.8, see http://theoryx5.uwinnipeg.ca/ppms/.
Zipped archives of most of these packages, suitable for local installation, are available, as are some bundled zipped archives consisting of a package plus all of its prerequisites.
If a desired package isn't available here, you can request one to be supplied.
Packages in this directory may be installed by giving the following command at a DOS prompt:
C:/>ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/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
A set of repositories, suitable for adding to the ppm utility of ActivePerl 10xx, is given below - make sure to add only those repositories corresponding to your Perl version, as reported by
C:/>perl -v
.
执行c:/perl/bin/>perl ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd结果如下
C:/Perl/bin>perl ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.
ppd
Downloading mod_perl-2.000004...done
Unpacking mod_perl-2.000004...done
Generating HTML for mod_perl-2.000004...done
Updating files in site area...done
Downloading mod_perl-2.000004 install script...done
Running mod_perl-2.000004 install script...
The Apache2 module mod_perl.so is needed to complete the installation,
and should be placed in your Apache2 modules directory. I will
now fetch and install this for you.Fetching http://cpan.uwinnipeg.ca/PPMPackages/10xx/x86/mod_perl.so ... done!
Where should mod_perl.so be placed? [D:/Apache2.2/modules] C:/Apache2.2/modules
mod_perl.so has been successfully installed to C:/Apache2.2/modules.
To enable mod_perl, put in the directives
LoadFile "C:/Path/to/Perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
in httpd.conf. For more information, visit
http://perl.apache.org/
and especially see
http://perl.apache.org/docs/2.0/rename.htmldone
474 files installed
貌似安装成功,可是到apache的目录下去看,mod_perl.so文件的内容根本就不对。上网查,似乎也没有针对这个版本的东东。
然后,使用mod_perl的源代码直接编译,
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.D:/mod_perl-2.0.4>perl Makefile.pl MP_AP_PREFIX=c:/Apache2.2
Reading Makefile.PL args from @ARGV
MP_AP_PREFIX = C:/Apache2.2----------------------------------------------------------------------
I could not find an apxs utility, which will be used in certain parts
of the build, if present. This utility (and the apr-config and
apu-config utilities) have not yet been ported to Apache2 on Win32,
but a development port is available. You can either- ignore installing apxs by answering "no" at the prompt below
(mod_perl will still build),
- install apxs by answering "yes" at the prompt below,
- quit now, run the "fetch_win32_apxs.pl" script in the build/ directory
to fetch and install the utilities, and then rebuild mod_perl,
- quit now, and from http://perl.apache.org/dist/win32-bin/ grab
apxs_win32.tar.gz; when unpacked, this contains a README explaining
how to install the utilities. Afterwards, rebuild mod_perl.
----------------------------------------------------------------------Install apxs now? [yes]
Fetching http://perl.apache.org/dist/win32-bin/apxs_win32.tar.gz ... done!
chdir apxs
C:/Perl/bin/perl.exe Configure.pl --with-apache2=C:/Apache2.2 --with-apache-prog
=httpd.exeapxs.bat has been created under C:/Apache2.2/bin.
apr-1-config.pl.bat has been created under C:/Apache2.2/bin.
apu-1-config.pl.bat has been created under C:/Apache2.2/bin.
no conflicting prior mod_perl version found - good.
Configuring Apache/2.2.11 mod_perl/2.0.4 Perl/v5.10.0
Checking if your kit is complete...
Looks good
Subroutine MY::postamble redefined at ./Makefile.PL line 167.
Subroutine MY::constants redefined at ./Makefile.PL line 181.
[ info] generating script t/TEST
[ info] generating script ./t/cgi-bin/cookies.pl
[ info] generating script ./t/cgi-bin/next_available_port.pl
Writing Makefile for Apache::Test
Checking for File::Spec...ok
Checking for Cwd...ok
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::BucketAlloc
Writing Makefile for APR::BucketType
Writing Makefile for APR::Date
Writing Makefile for APR::Error
Writing Makefile for APR::Finfo
Writing Makefile for APR::IpSubnet
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::Status
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::ThreadRWLock
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache2::Access
Writing Makefile for Apache2::CmdParms
Writing Makefile for Apache2::Command
Writing Makefile for Apache2::Connection
Writing Makefile for Apache2::ConnectionUtil
Writing Makefile for Apache2::Directive
Writing Makefile for Apache2::Filter
Writing Makefile for Apache2::FilterRec
Writing Makefile for Apache2::HookRun
Writing Makefile for Apache2::Log
Writing Makefile for Apache2::MPM
Writing Makefile for Apache2::Module
Writing Makefile for Apache2::Process
Writing Makefile for Apache2::RequestIO
Writing Makefile for Apache2::RequestRec
Writing Makefile for Apache2::RequestUtil
Writing Makefile for Apache2::Response
Writing Makefile for Apache2::ServerRec
Writing Makefile for Apache2::ServerUtil
Writing Makefile for Apache2::SubProcess
Writing Makefile for Apache2::SubRequest
Writing Makefile for Apache2::URI
Writing Makefile for Apache2::Util
Writing Makefile for Apache2
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for libaprext
Writing Makefile for APR_build
Writing Makefile for Apache2::Const
Writing Makefile for Apache2_build
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl2
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning] LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.
也未能得到mod_perl.so文件。
后来下载了XAMPP的发行版,解压出里面的mod_perl.so文件就可以用了。
XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,解压缩,启动即可。
xampp的官方网站是http://www.apachefriends.org/zh_cn/index.html
许多人通过他们自己的经验认识到安装 Apache 服务器是件不容易的事儿。如果您想添加 MySQL、PHP 和 Perl,那就更难了。XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,解压缩,启动即可。
到目前为止,XAMPP 共有以下四种版本:
- 适用于 Linux 的版本(已在 Ubuntu、SuSE、RedHat、Mandrake 和 Debian 下通过测试),
- 适用于 Windows 98、NT、2000、2003、XP 和 Vista 的版本,
- 适用于 Solaris SPARC 的测试版(在 Solaris 8 环境下开发并测试),
- 适用于 Mac OS X 的测试版。
适用于 Mac OS X 和 Solaris 的 XAMPP 版本尚处于开发的第一阶段。使用时风险自担!
我下载的是
XAMPP 的 Windows 版扩展 | ||
版本 |
大小 |
相关信息 |
Perl 5.10.0-2.2.11 XAMPP 1.7.1 Apache 2.2.11 |
Perl 5.10.0 - mod_perl 2.0.4 Add-on package for the XAMPP 1.7.1 with Apache 2.2.11. Needed NT, 2000, 2003, XP or VISTA systems! For the older XAMPP Version you need the older Perl XAMPP add-ons on www.sourceforge.net. Docs: README |
|
Installer | 14 MB | 安装包 MD5 checksum: 3dbe957a0f4a918da85f587bb175a43f |
ZIP | 30 MB | ZIP 压缩包 MD5 checksum: ab36b2842067c07365246279d3b74314 |
EXE (7-zip) | 13 MB | 自解压 7-ZIP 压缩包 MD5 checksum: 34f14562fec5bea313bc195035fd1574 |