Ant*_*ulo 2 macos homebrew nginx rtmp
我能够在 macOS High Sierra 10.13 中安装 Homebrew + nginx + rtmp。现在我想在 macOS Mojave 10.14 上执行相同的操作。
\n\n那么让我们开始...安装 Homebrew,首先我们需要在终端中安装 Xcode...
\n\nxcode-select \xe2\x80\x93install\nRun Code Online (Sandbox Code Playgroud)\n\n比。我们需要自制软件
\n\n/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"\nRun Code Online (Sandbox Code Playgroud)\n\n比安装 nginx + rtmp
\n\n这就是问题所在
\n\n我试过:
\n\nbrew install nginx-full --with-rtmp-module\nRun Code Online (Sandbox Code Playgroud)\n\n但这行不通
\n\n结果:
\n\nUpdating Homebrew...\nUsage: brew install [options] formula\n\nInstall formula. Additional options specific to formula may be appended to the command.\n\nUnless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will then be run for\nthe installed formulae or, every 30 days, for all formulae.\n\n -d, --debug If brewing fails, open an interactive\n debugging session with access to IRB or a\n shell inside the temporary build directory.\n --env If std is passed, use the standard build\n environment instead of superenv. If super\n is passed, use superenv even if the formula\n specifies the standard build environment.\n --ignore-dependencies An unsupported Homebrew development flag to\n skip installing any dependencies of any\n kind. If the dependencies are not already\n present, the formula will have issues. If\n you\'re not developing Homebrew, consider\n adjusting your PATH rather than using this\n flag.\n --only-dependencies Install the dependencies with specified\n options but do not install the formula\n itself.\n --cc Attempt to compile using the specified\n compiler, which should be the name of the\n compiler\'s executable, e.g. gcc-7 for GCC\n 7. In order to use LLVM\'s clang, specify\n llvm_clang. To use the Apple-provided\n clang, specify clang. This option will\n only accept compilers that are provided by\n Homebrew or bundled with macOS. Please do\n not file issues if you encounter errors\n while using this option.\n -s, --build-from-source Compile formula from source even if a\n bottle is provided. Dependencies will still\n be installed from bottles if they are\n available.\n --force-bottle Install from a bottle if it exists for the\n current or newest version of macOS, even if\n it would not normally be used for\n installation.\n --include-test Install testing dependencies required to\n run brew test formula.\n --devel If formula defines it, install the\n development version.\n --HEAD If formula defines it, install the HEAD\n version, aka. master, trunk, unstable.\n --fetch-HEAD Fetch the upstream repository to detect if\n the HEAD installation of the formula is\n outdated. Otherwise, the repository\'s HEAD\n will only be checked for updates when a new\n stable or development version has been\n released.\n --keep-tmp Retain the temporary files created during\n installation.\n --build-bottle Prepare the formula for eventual bottling\n during installation, skipping any\n post-install steps.\n --bottle-arch Optimise bottles for the specified\n architecture rather than the oldest\n architecture supported by the version of\n macOS the bottles are built on.\n -f, --force Install without checking for previously\n installed keg-only or non-migrated\n versions.\n -v, --verbose Print the verification and postinstall\n steps.\n --display-times Print install times for each formula at the\n end of the run.\n -i, --interactive Download and patch formula, then open a\n shell. This allows the user to run\n ./configure --help and otherwise\n determine how to turn the software package\n into a Homebrew package.\n -g, --git Create a Git repository, useful for\n creating patches to the software.\n -h, --help Show this message.\nError: invalid option: --with-rtmp-module\nRun Code Online (Sandbox Code Playgroud)\n\n所以我尝试了:
\n\nbrew install nginx --with-rtmp-module\nRun Code Online (Sandbox Code Playgroud)\n\n但是......结果:
\n\nUpdating Homebrew...\nError: No available formula with the name "\xe2\x80\x93with-rtmp-module" \n==> Searching for a previously deleted formula (in the last month)...\nError: No previously deleted formula found.\n==> Searching for similarly named formulae...\nError: No similarly named formulae found.\n==> Searching taps...\n==> Searching taps on GitHub...\nError: No formulae found in taps.\nRun Code Online (Sandbox Code Playgroud)\n\n所以我决定先尝试安装 nginx 然后再安装 rtmp 模块
\n\nbrew install nginx\nRun Code Online (Sandbox Code Playgroud)\n\n比我尝试过的:
\n\nbrew install nginx libnginx-mod-rtmp(从Linux复制)brew install rtmp-modulebrew install module-rtmp但以上方法均无效。我该如何解决?
\n小智 9
在尝试安装 nginx-full 之前,您应该先点击 nginx 公式
好吧,你可以尝试denji/nginx,因为 homebrew/nginx tap 已被弃用,那就是:
brew tap denji/nginx
Run Code Online (Sandbox Code Playgroud)
然后
brew install nginx-full --with-rtmp-module
Run Code Online (Sandbox Code Playgroud)
这对我行得通。
| 归档时间: |
|
| 查看次数: |
4063 次 |
| 最近记录: |