因此,我正在关注这个tutorial,并且大约是编译nginx的一半,'看起来有些问题出错了。在OS X Mountain Lion上安装带nginx的乘客时出错
因此,我安装了RVM并正在运行,并且我还安装了Passenger Gem。我还使用Homebrew安装了nginx,它也可以工作。
那么,我尝试:
rvmsudo `which passenger-install-nginx-module`
我发现here。
当提示,如果我想安装nginx的新版本,或与乘客支持重新编译家酿一个,我选择选项2.当它要求在源代码,放在:
/Library/Caches/Homebrew/nginx-1.2.6
(我打开了下载文件,并且检查了那个目录中的所有东西都存在并且正确)。
然后,当它询问我在哪里安装新的重新编译的nginx时,我说与旧的目录相同一个:
/usr/local/Cellar/nginx/1.2.6/sbin
我将额外的参数留空,并敲入两次。
它运行几分钟,开始编译和安装nginx,但然后失败。这里的最后几行:
objs/ngx_modules.o \
/Users/alex/.rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.19/ext/nginx/../common/libpassenger_common.a /Users/alex/.rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.19/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
--------------------------------------------
It looks like something went wrong
Please read our Users guide for troubleshooting tips:
/Users/alex/.rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.19/doc/Users guide Nginx.html
If that doesn't help, please use our support facilities at:
https://www.phusionpassenger.com
We'll do our best to help you.
我检查了Nginx的不运行了,我也试着卸载Nginx的家酿版本,重新运行与默认脚本,它仍然无法上我。
我安装了最新版本的XCode和Command Line Utilities安装的Mountain Lion。有谁知道这个问题可能是什么?
这是否解决了问题? 它应该是'brew upgrade pcre',可能吧。 我试过升级pcre,但Homebrew报告pcre-8.32是最新的,并安装在我的机器上。 – Sathish