【问题标题】:Phusion Passenger installation error in MacOS 10.13 High SierraMacOS 10.13 High Sierra 中的 Phusion Passenger 安装错误
【发布时间】:2017-10-08 06:08:28
【问题描述】:

我一直在尝试使用此处提到的方法在 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

【问题讨论】:

  • 检查你的mac上是否存在/usr/include/apache2/httpd.h文件?

标签: ruby nginx passenger macos-sierra


【解决方案1】:

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

【讨论】:

  • 感谢您的回复。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-03-13
  • 2015-12-29
  • 2018-03-06
  • 2018-03-18
  • 2018-12-05
  • 2018-04-03
  • 2018-03-14
相关资源
最近更新 更多