【发布时间】:2016-02-02 20:27:32
【问题描述】:
我需要帮助在我的 Mac 上使用 perl_module 编译 nginx:
System Software Overview:
System Version: OS X 10.11.1 (15B42)
Kernel Version: Darwin 15.0.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: Philipp
User Name: XXXXXXX XXXXXXXX (philipp)
Secure Virtual Memory: Enabled
Time since boot: 4 days 22:46
我配置nginx用PCRE和PERL编译,即:
./configure --with-pcre=/Users/philipp/downloads/pcre-8.38 --with-http_perl_module --prefix=/servers/nginx
配置状态的输出:
checking for perl
+ perl version: This is perl 5, version 18, subversion 2 (v5.18.2)
built for darwin-thread-multi-2level
+ perl interpreter multiplicity found
如果我执行 make 我会遇到以下错误:
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我google了一下,找到了export KERNEL_BITS=64的提示,没有解决问题。关于如何用 perl 编译 nginx 的任何建议。在没有 --with-http_perl_module 选项的情况下编译成功,但在这种情况下,我不能在 nginx.conf 中使用 perl(当然:))。
更新:
我无法用 perl 编译 nginx。我最终使用了一个预编译的包,这有点让人不满意,因为现在我必须处理很多我不喜欢的包。无论如何,如果有人有解决方案,我会很高兴知道。
【问题讨论】:
标签: macos perl nginx compiler-errors