其他任何人都会收到此错误“错误:无效选项:--with-passenger”

问题描述 投票:0回答:1

不能让NGINX与乘客一起安装

按照你应该采取的步骤...酿造安装乘客

然后运行以下命令... brew install nginx --with-passenger

但我得到:错误:无效选项: - with-passenger

无法在网上找到任何关于此的资源,所以在这里询问。

$ brew install nginx --with-passenger用法:brew install [options]公式

安装配方。

公式通常是要安装的公式的名称,但可以通过几种不同的方式指定。

-d, --debug                      If brewing fails, open an interactive
                                 debugging session with access to IRB or a
                                 shell inside the temporary build directory
    --env                        If std is passed, use the standard build
                                 environment instead of superenv.If super
                                 is passed, use superenv even if the formula
                                 specifies the standard build environment.
    --ignore-dependencies        Skip installing any dependencies of any
                                 kind. If they are not already present, the
                                 formula will probably fail to install.
    --only-dependencies          Install the dependencies with specified
                                 options but do not install the specified
                                 formula.
    --cc                         Attempt to compile using provided
                                 compiler. compiler should be the name
                                 of the compiler's executable, for instance
                                 gcc-7 for GCC 7. In order to use LLVM's
                                 clang, use llvm_clang. To specify the
                                 Apple-provided clang, use clang. This
                                 parameter will only accept compilers that
                                 are provided by Homebrew or bundled with
                                 macOS. Please do not file issues if you
                                 encounter errors while using this flag.
-s, --build-from-source          Compile the specified formula from source
                                 even if a bottle is provided. Dependencies
                                 will still be installed from bottles if
                                 they are available.
    --force-bottle               Install from a bottle if it exists for the
                                 current or newest version of macOS, even if
                                 it would not normally be used for
                                 installation.
    --include-test               Install testing dependencies required to
                                 run brew test.
    --devel                      If formula defines it, install the
                                 development version.
    --HEAD                       If formula defines it, install the HEAD
                                 version, aka. master, trunk, unstable.
    --fetch-HEAD                 Fetch the upstream repository to detect if
                                 the HEAD installation of the formula is
                                 outdated. Otherwise, the repository's HEAD
                                 will be checked for updates when a new
                                 stable or development version has been
                                 released.
    --keep-tmp                   Don't delete the temporary files created
                                 during installation.
    --build-bottle               Prepare the formula for eventual bottling
                                 during installation.
-f, --force                      Install without checking for previously
                                 installed keg-only or non-migrated
                                 versions.
-v, --verbose                    Print the verification and postinstall
                                 steps.
    --display-times              Print install times for each formula at the
                                 end of the run.
-i, --interactive                Download and patch formula, then open a
                                 shell. This allows the user to run
                                 ./configure --help and otherwise
                                 determine how to turn the software package
                                 into a Homebrew package.
-g, --git                        Create a Git repository, useful for
                                 creating patches to the software.
-h, --help                       Show this message.

错误:无效选项: - with-passenger

这应该工作......所以是的。

ruby-on-rails nginx passenger
1个回答
2
投票

迟到的答案。显然,在撰写本文时,旅客网站上的文件已经过时。

根据phusion的github网站

https://github.com/phusion/passenger/issues/2187#issue-416881033

配置选项--nginx-with-passenger不再有效。

相反:

brew安装nginx乘客

附录:

当使用谷歌搜索结果时,旧页面出现在列表的顶部。这是当前维护的页面,其中包含准确的信息:

https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/nginx/install/oss/osx.html

© www.soinside.com 2019 - 2024. All rights reserved.