Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 使用brew删除boost并安装特定版本_Macos_Boost_Homebrew - Fatal编程技术网

Macos 使用brew删除boost并安装特定版本

Macos 使用brew删除boost并安装特定版本,macos,boost,homebrew,Macos,Boost,Homebrew,为什么brew信息显示1.71.0版本? 为什么无法删除或卸载boost?命令brew info显示boost的最新可用版本,即1.7.10。这是正确的 运行brew卸载boost或brew删除boost时,Homebrew会尝试删除最新版本(1.7.10)。由于未安装此版本,Homebrew未成功。这是正确的 您已经安装了公式boost@1.59,这是与boost不同的公式。您可以使用brew remove将其删除boost@1.59,或获取有关如何将其与brew信息一起使用的信息boost@

为什么
brew信息
显示1.71.0版本?

为什么无法删除或卸载boost?

命令
brew info
显示boost的最新可用版本,即1.7.10。这是正确的

运行
brew卸载boost
brew删除boost
时,Homebrew会尝试删除最新版本(1.7.10)。由于未安装此版本,Homebrew未成功。这是正确的

您已经安装了公式
boost@1.59
,这是与
boost
不同的公式。您可以使用
brew remove将其删除boost@1.59
,或获取有关如何将其与
brew信息一起使用的信息boost@1.59

brew info boost
boost: stable 1.71.0 (bottled), HEAD
Collection of portable C++ source libraries
https://www.boost.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost.rb
==> Dependencies
Required: icu4c ✔
==> Options
--HEAD
    Install HEAD version
==> Caveats
Building of Boost.Log is disabled because it requires newer GCC or Clang.
==> Analytics
install: 31,607 (30 days), 109,724 (90 days), 590,627 (365 days)
install-on-request: 11,180 (30 days), 39,021 (90 days), 197,063 (365 days)
build-error: 0 (30 days)


brew --version
Homebrew 2.2.1
Homebrew/homebrew-core (git revision 87d2; last commit 2019-12-16)
Homebrew/homebrew-cask (git revision cb1c4; last commit 2019-12-16)


brew uninstall boost
Error: No such keg: /usr/local/Cellar/boost


brew remove boost
Error: No such keg: /usr/local/Cellar/boost


brew install boost@1.59

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

Warning: boost@1.59 1.59.0 is already installed and up-to-date
To reinstall 1.59.0, run `brew reinstall boost@1.59`


brew switch boost 1.59
Error: boost not found in the Cellar.


brew list | grep boost
boost@1.59