如何使用一个供应商的Apache用自编的Perl和mod_perl的? [英] How do I use a vendor Apache with a self-compiled Perl and mod_perl?

查看:162
本文介绍了如何使用一个供应商的Apache用自编的Perl和mod_perl的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用苹果或红帽的内置Apache的,但我想使用Perl 5.10而mod_perl。什么是完成这一任务的侵入性最小的方法是什么?我想免费的安全补丁对供应商的阿帕奇,DAV,PHP等的优势,但我非常关心它的Perl版本我用在我的@INC路径是什么。我不介意编译我自己的mod_perl。


解决方案

  1. 打造你的Perl 5.10版本之后从mod_perl的文档的任何特殊说明。告诉Perl的配置在一些不规范的地方安装,像/usr/local/perl/5.10.0


  2. 使用说明来构建一个共享库(或动态或的.so)对你的发行版的Apache的mod_perl的,但要确保你运行Makefile.PL使用的的perl的版本:

    /usr/local/perl/5.10.0/bin/perl Makefile.PL APXS =的/ usr / bin中/ APXS


  3. 安装和配置的mod_perl正常人一样。


这可能是有益的,第一步之后,改变你的路径让你不accidentially弄不清楚你正在使用哪个版本的Perl:

 出口PATH =的/ usr /本地/ perl的/ 5.10.0 /斌:$ PATH

I want to use Apple's or RedHat's built-in Apache but I want to use Perl 5.10 and mod_perl. What's the least intrusive way to accomplish this? I want the advantage of free security patching for the vendor's Apache, dav, php, etc., but I care a lot about which version of Perl I use and what's in my @INC path. I don't mind compiling my own mod_perl.

解决方案

  1. Build your version of Perl 5.10 following any special instructions from the mod_perl documentation. Tell Perl configurator to install in some non-standard place, like /usr/local/perl/5.10.0

  2. Use the instructions to build a shared library (or dynamic, or .so) mod_perl against your distribution's Apache, but make sure you run the Makefile.PL using your version of perl:

    /usr/local/perl/5.10.0/bin/perl Makefile.PL APXS=/usr/bin/apxs

  3. Install and configure mod_perl like normal.

It may be helpful, after step one, to change your path so you don't accidentially get confused about which version of Perl you're using:

export PATH=/usr/local/perl/5.10.0/bin:$PATH

这篇关于如何使用一个供应商的Apache用自编的Perl和mod_perl的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆