如何在 OS X Leopard 的默认 Apache 2 下安装 modperl?

发布于 2024-07-04 23:27:40 字数 260 浏览 12 评论 0原文

我尝试在默认的 vanilla Leopard Apache 2 下安装 modperl 失败了,我在网上能找到的只是 this

如果可能的话,我希望不要依赖 MacPorts 或 Fink,不过如果它们可以与默认的 Apache 2 安装一起工作,那可能就可以了。

My attempts to install modperl under the default vanilla Leopard Apache 2 have failed and all I can find online are variations on this:

I would like if possible not to rely on MacPorts or Fink, though if they can be made to work with the default Apache 2 install that would probably be ok.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

独自←快乐 2024-07-11 23:27:40

Macports 有它(想想 linux 上的 apt-get 等,但在 OS X 上)

(你可以看到它列出了此处

虽然我自己还没有安装.. ..

Macports has it (think apt-get and the likes on linux, but on OS X)

(you can see it listed here)

Haven't installed myself though....

久夏青 2024-07-11 23:27:40

为什么放弃并构建/安装您自己的或移植版本的 perl、apache2 和 mod_perl2? 也许比与之战斗更容易。 (为我工作。)


(as per comment)
Mmmkay! Sorry, I didn't intend that to be snarky or imply that it's not a valid question. I guess I'll delete this (if I can.) Would it be useful to edit the question to add your rational rationale for not having a separate installation?

Why not just give up and build/install your own or port versions of perl, apache2, and mod_perl2? Probably easier than fighting with it. (Worked for me.)


(as per comment)
Mmmkay! Sorry, I didn't intend that to be snarky or imply that it's not a valid question. I guess I'll delete this (if I can.) Would it be useful to edit the question to add your rational rationale for not having a separate installation?

傲影 2024-07-11 23:27:40

获取最新的 mod_perl 并设置以下变量:

导出 ARCHFLAGS="-arch x86_64"

照常编译/安装。

摘自这篇文章“在 Leopard 上构建 mod_perl2”还链接到有关如何让 Apache2::Request (libapreq) 工作的更多详细信息。

-

(并不是说我已经能够测试它,因为我个人回到了运行 Apache 1.3 的 Tiger 上!)

(让我们看看 stackoverflow 是否设法将这个答案提升到顶部,因为它是唯一的“正确”答案)

Get the latest mod_perl and set the following var:

export ARCHFLAGS="-arch x86_64"

Compile/install as usual.

Taken from this post, "Building mod_perl2 on Leopard" which also links to further details on how to get Apache2::Request (libapreq) working as well.

-

(Not that I've been able to test it since I'm personally back on Tiger running Apache 1.3!)

(And let's see if stackoverflow manages to lift this answer to the top since it is the only "correct" answer)

时间海 2024-07-11 23:27:40

几天前我问了一个非常相似的问题并得到了一些很好的答案:
“我该如何使用带有自编译 Perl 和 mod_perl 的供应商 Apache?”

I asked a very similar question a few days ago and got some good answers:
"How do I use a vendor Apache with a self-compiled Perl and mod_perl?"

记忆で 2024-07-11 23:27:40

即使您只指定了 mod perl,mod_perl 的 mc ports 安装也会尝试安装 apache 1.3,所以这不是一个好的选择。

The mc ports install of mod_perl tries to install apache 1.3 even if you specify just the mod perl, so thats not a good option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文