首先,我試圖編譯源代碼的所有內容,我沒有使用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