小编ste*_*eah的帖子

Nginx在Mac OS X Lion上安装.找不到PCRE

首先,我正在尝试编译所有源代码,我不使用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`
Run Code Online (Sandbox Code Playgroud)

我现在正在尝试安装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.

任何人都可以帮我解决这个问题吗?谢谢.

pcre nginx osx-lion

12
推荐指数
1
解决办法
8481
查看次数

标签 统计

nginx ×1

osx-lion ×1

pcre ×1