首先,我试图编译源代码的所有内容,我没有使用MacPorts或HomeBrew。Nginx安装在Mac OS X Lion上。找不到PCRE
我已经安装了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。
谁能帮我避开这个问题? 谢谢。
你试过--with-PCRE =在/ usr /本地/ PCRE(顺便说一句,这就是为什么人们使用的MacPorts /家酿避免的问题,这个追逐) – Mark
如果我添加一个路径PCRE它会创建一个Makefile,但是当你运行make时它会尝试查找pcre makefile时引发错误。 (在Linux上我所有的软件包管理器,但在Mac上我发现他们混乱和不可靠,但是,他们让生活变得更容易) – steveYeah
声音像pcre没有正确安装它的include和lib文件的位置? – Mark