首先,我正在尝试编译所有源代码,我不使用MacPorts或HomeBrew。
我已经安装了pcre /usr/local/pcre-8.21
并将此符号链接到 /usr/local/pcre
。
我已经设定 /usr/local/pcre/bin
对我的 PATH
变量在这里。
`/usr/local:/usr/local/mysql/bin:/usr/local/pcre/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin`
我现在正在尝试安装Nginx,但我不断收到此消息:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
我尝试过设置 --with-pcre=/usr/local/pcre/bin
但它只是试图重新安装PCRE。
任何人都可以帮我解决这个问题吗? 谢谢。