无法让NGINX与乘客一起安装
按照您应该执行的步骤进行操作... 酿酒安装乘客
然后您运行以下命令... brew install nginx --with-passenger
但是我得到: 错误:无效选项:-with-passenger
在网上找不到有关此资源的任何资源,请在这里询问。
$ brew install nginx --with-passenger 用法:brew install [选项]公式
安装公式。
公式通常是要安装的公式的名称,但是可以指定 以几种不同的方式。
-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
这应该可以工作...是的。
答案 0 :(得分:2)
一个迟来的答案。显然,在撰写本文时,乘客站点上的文档已过时。
根据phusion的github网站
https://github.com/phusion/passenger/issues/2187#issue-416881033
配置选项-nginx-passenger 不再有效。
代替:
酿造nginx乘客
附录:
当前使用google搜索结果时,旧页面位于列表顶部。这是当前维护的页面,其中包含准确的信息:
https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/nginx/install/oss/osx.html