下载:mod_perl 目前最新版本是1.29
wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz
解包后,
%perl Makefile.PL USE_APXS=1 WITH_APXS=/home/apache/bin/apxs EVERYTHING=1
%make
#make install
mod_perl的作用和eAccelerator差不多,面向perl应用的预编译。通过phpinfo可以看到Apache Version
Apache/1.3.37 (Unix) mod_perl/1.29 PHP/4.4.2
Will configure via APXS (apxs=/home/apache/bin/apxs) ************* WARNING *************作者:车东 发表于:2006-08-21 19:08 最后更新于:2007-07-25 17:07Your Perl is linked with -lpthread, make sure that your httpd is built with LIBS=-lpthread
************* WARNING *************
PerlDispatchHandler.........enabled
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..enabled
PerlTransHandler............enabled
PerlHeaderParserHandler.....enabled
PerlAccessHandler...........enabled
PerlAuthenHandler...........enabled
PerlAuthzHandler............enabled
PerlTypeHandler.............enabled
PerlFixupHandler............enabled
PerlHandler.................enabled
PerlLogHandler..............enabled
PerlInitHandler.............enabled
PerlCleanupHandler..........enabled
PerlRestartHandler..........enabled
PerlStackedHandlers.........enabled
PerlMethodHandlers..........enabled
PerlDirectiveHandlers.......enabled
PerlTableApi................enabled
PerlLogApi..................enabled
PerlUriApi..................enabled
PerlUtilApi.................enabled
PerlFileApi.................enabled
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................enabled
PerlSSI.....................enabled
Will run tests as User: 'chedong' Group: 'apache'
Configuring mod_perl for building via APXS
+ Creating a local mod_perl source tree
+ Setting up mod_perl build environment (Makefile)
+ id: mod_perl/1.29
+ id: Perl/v5.8.6 (linux) [/usr/bin/perl]
Now please type 'make' to build libperl.so
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Checking if your kit is complete...
Looks good
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl
版权声明:可以转载,转载时请务必以超链接形式标明文章 DSO模式安装mod_perl备忘 的原始出处和作者信息及本版权声明。
http://www.chedong.com/blog/archives/001188.html
Comments
学习,收藏&备份……
由: jianshu 发表于 2006年08月25日 夜间03时24分
学习一下,一直不知道如何安装
由: ak48 发表于 2006年08月25日 上午11时12分
请教下,你用的哪家的空间,速度不错
由: 才大 发表于 2006年08月25日 下午05时29分