MacOS 10.13 High Sierra中的Phusion Passenger安装错误

时间:2017-10-08 06:08:28

标签: ruby nginx passenger macos-sierra

我一直在尝试使用此处提到的方法在macOS X 10.13 High Sierra下安装Phusion Passenger。 https://www.phusionpassenger.com/library/install/nginx/install/oss/osx/

获得以下回复。有没有人对此问题有任何见解和/或有任何建议可以帮我解决这个问题?

/Library/Developer/CommandLineTools/usr/bin/ranlib: file:
buildout/apache2/module_libboost_oxt.a(regex_debug.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file:
buildout/apache2/module_libboost_oxt.a(tss_null.o) has no symbols
clang -o buildout/apache2/mod_passenger.o  -Isrc/agent
-Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -fPIC -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -c src/apache2_module/mod_passenger.c
src/apache2_module/mod_passenger.c:26:10: fatal error: 'httpd.h' file
not found
#include <httpd.h>
         ^~~~~~~~~ 1 error generated. rake aborted! Command failed with status (1): [clang -o buildout/apache2/mod_passenger.o 
-Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -fPIC -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -c src/apache2_module/mod_passenger.c]


/private/tmp/passenger-20171008-7392-owxt2w/passenger-5.1.8/build/support/cplusplus.rb:53:in `run_compiler'
/private/tmp/passenger-20171008-7392-owxt2w/passenger-5.1.8/build/support/cplusplus.rb:97:in `compile_c'
/private/tmp/passenger-20171008-7392-owxt2w/passenger-5.1.8/build/support/cplusplus.rb:154:in
`block in define_c_object_compilation_task' Tasks: TOP => apache2 =>
buildout/apache2/mod_passenger.so => buildout/apache2/mod_passenger.o

1 个答案:

答案 0 :(得分:1)

macOS High Sierra的编译修复程序最近added to Passenger's stable branch,将成为5.1.11版本的一部分。