使用nginx 1.12.2在freebsd 10.3上编译乘客5.2

时间:2018-01-30 11:40:01

标签: nginx passenger freebsd

我用gem install安装乘客并获得5.2版本。 然后我转到gem目录并运行rake nginx:as_dynamic_module

结果是

In file included from src/agent/Core/ApplicationPool/Implementation.cpp:39:
src/cxx_supportlib/Hooks.h:146:31: error: use of undeclared identifier
      'WEXITSTATUS'
                        ") exited with status " << WEXITSTATUS(info.status));
                                                   ^
src/cxx_supportlib/LoggingKit/Logging.h:95:51: note: expanded from macro
      'P_INFO'
        Passenger::LoggingKit::INFO, __FILE__, __LINE__, expr)
                                                         ^
src/cxx_supportlib/LoggingKit/Logging.h:48:16: note: expanded from macro 'P_LOG'
                        _ostream << expr << "\n"; \
                                    ^
1 error generated.
rake aborted!

乘客版本5.1.12已经并且仍然可以编译并正在运行。

我该如何解决问题?

1 个答案:

答案 0 :(得分:0)

可能passenger无法使用clang进行编译?无论如何,它也可以从端口https://www.freshports.org/www/rubygem-passenger/安装,也可以作为nginxapache风格的包安装:

pkg install rubygem-passenger-nginx