【问题标题】:compile passenger 5.2 on freebsd 10.3 with nginx 1.12.2使用 nginx 1.12.2 在 freebsd 10.3 上编译乘客 5.2
【发布时间】:2018-01-30 20:09:00
【问题描述】:

我确实使用 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!

passenger 版本 5.1.12 过去和现在仍然可以编译并且正在运行。

我该如何解决这个问题?

【问题讨论】:

    标签: nginx passenger freebsd


    【解决方案1】:

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

    pkg install rubygem-passenger-nginx
    

    【讨论】:

    • 我会试试的。但这不是 5.2 版
    • 我试过但是nginx没有动态模块?你知道要集成到 nginx 配置中的行是什么吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-20
    • 2017-01-22
    • 2013-08-31
    • 1970-01-01
    • 2016-07-12
    相关资源
    最近更新 更多