2017-10-08 169 views
1

我一直试图安装Phusion Passenger在macOS X 10.13高塞拉利用这里提到的方法。 https://www.phusionpassenger.com/library/install/nginx/install/oss/osx/Phusion Passenger安装错误在MacOS 10.13高塞拉利昂

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

/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 
+0

检查你的MAC上是否存在'/ usr/include/apache2/httpd.h'文件? –

回答