我试图从10.7升级后得到乘客在Mountain Lion上工作,但是在运行passenger-install-apache2-module时遇到问题:
g++ ext/apache2/HelperAgent.cpp -o agents/apache2/PassengerHelperAgent -Iext -Iext/common -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<ext/hash_fun.h>" -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS ext/common/libpassenger_common.a ext/common/libboost_oxt.a -lpthread Undefined symbols for architecture x86_64: "_regcompA", referenced from: Passenger::FilterSupport::Filter::Value::Value(bool, Passenger::StaticString const&, bool)in libpassenger_common.a(aggregate.o) Passenger::FilterSupport::Filter::Value::initializeFrom(Passenger::FilterSupport::Filter::Value const&)in libpassenger_common.a(aggregate.o) "_regexecA", referenced from: Passenger::FilterSupport::Filter::Comparison::compareStringOrRegexp(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Passenger::FilterSupport::Context const&)in libpassenger_common.a(aggregate.o) "_regfreeA", referenced from: Passenger::FilterSupport::Filter::Value::freeStorage() in libpassenger_common.a(aggregate.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status rake aborted! Command failed with status (1): [g++ ext/apache2/HelperAgent.cpp -o agents/...]
所有必需的软件检查都是绿色的。
我已经按照Phusion博客文章中的build议安装了PCRE头文件,虽然这是一个赌博,因为它是针对Nginx的问题。
有没有人有任何想法?
谢谢,格里夫
这是PCRE问题的一个单独问题。 Phusion Passenger使用POSIX标准的正则expression式函数 。
起初,这个错误似乎暗示OS X 10.8不支持POSIX正则expression式函数。 但是,看到这样的结论将是一个非常奇怪的结论:
我现在唯一可以得出的结论是,你的系统坏了,或者OS X 10.8已经坏了。 我现在正在度假,对欧洲和美国的ping时间超过了1000多ms,而我没有OS X 10.8,所以我现在不能进一步分析这个问题。 因此,我可以给你的短期build议是: