ruby-on-rails - 其他任何人都会收到此错误“错误:无效选项:--with-passenger”
问题描述
无法让 NGINX 与乘客一起安装
按照您应该执行的步骤... brew install Passenger
然后运行以下命令... 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
这应该工作......所以是的。
解决方案
一个迟到的答案。显然,在撰写本文时,乘客网站上的文档已经过时。
根据 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
推荐阅读
- azure - 在 Azure 中获取 CosmosDB 的连接字符串的问题
- javascript - 未捕获的类型错误:无法读取带有偏移量的未定义的属性“顶部”
- wordpress - 我可以在 Google 网站上托管 wordpress 吗?
- python - 使用 findall 在字符串中找不到三个连续的单词
- javascript - 类型 'string' 不可分配给类型 '(url: string) => string'.ts(2322)
- android - Android TransactionTooLargeException 选择图片库
- linux - jitsi 无法共享某些应用程序(屏幕共享)
- ios - iOS IAP 恢复需要几次尝试
- javascript - 默认滚动条始终完全滚动的库
- reactjs - 卸载 React Native 组件时如何清除 Image.getSize 请求?