[英]Passenger NGINX module Failing
有一次,我的系統運行正常,NGINX,Rails和Passenger。
昨天我做了一個全新的Passenger安裝,現在passenger-install-nginx-module
失敗了。
/Users/mgaughan/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/ext/nginx/../common/libpassenger_common.a /Users/mgaughan/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/ext/nginx/../common/libboost_oxt.a -lstdc++ - lpthread -lm -lpcre -lssl -lcrypto -lz
Undefined symbols for architecture x86_64:
"_pcre_free_study", referenced from:
_ngx_pcre_free_studies in ngx_regex.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make: *** [build] Error 2
昨天在ServerFault上發布了這個確切的問題,但我認為這更有可能在這里得到解答(如果這是一個問題我道歉)。
https://serverfault.com/questions/399304/cannot-install-phusion-passenger-3-0-13-with-nginx-1-2-1
謝謝你的幫助。
但是,通過運行自定義安裝,我確實通過Passenger獲得了NGINX並再次運行。 這顯然是版本2及更高版本的兼容性問題。
首先,我只是拉下了NGINX源(1.0.15)。
在我的/ usr / local中
wget http://www.nginx.org/download/nginx-1.0.15.tar.gz nginx_source
解壓
tar -xvz nginx-1.0.15.tar.gz
然后運行乘客安裝。 選擇選項2(自定義安裝)
sudo passenger-install-nginx-module
它提示輸入源是/usr/local/nginx-1.0.15
以及你想要它安裝在哪里/usr/local/nginx
(在我的例子中)。
從那里一切正常,任何人都知道NGINX 2的任何真正修復,請讓我知道。
brew install pcre
當配置步驟也添加
--with-pcre --with-ipv6 --with-ld-opt=-L/usr/local/lib
它也使用-ld-opt作為自制軟件,它並不完美。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.