首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用brew删除boost并安装特定版本

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

Stack Overflow用户
提问于 2019-12-16 22:23:42
回答 1查看 1.3K关注 0票数 1
代码语言:javascript
复制
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

为什么brew info显示1.71.0版本?为什么我不能删除或卸载boost?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-18 04:24:13

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

当您运行brew uninstall boostbrew remove boost时,Homebrew会尝试删除最新版本(1.7.10)。未安装此版本,因此自制软件不会成功。这是正确的。

您已经安装了与boost不同的公式boost@1.59。您可以使用brew remove boost@1.59删除它,或者获取有关如何在brew info boost@1.59中使用它的信息。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59358579

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档