我想使用clang的新特性,所以我使用brew install llvm安装了llvm (与工具一起)。我很惊讶,因为安装所花费的时间太少了,这是因为brew info llvm显示我安装了瓶装版llvm: stable 4.0.0 (bottled), HEAD [keg-only]。
不管出于什么原因,我都想从源头上构建llvm。然后我将依次使用brew rm llvm和brew install --build-from-source llvm。现在,我想我已经卸载了使用初始brew install llvm命令安装的预构建二进制文件,并使用brew install --build-from-source llvm从源代码构建了全新的llvm。
在这些命令之后,brew info llvm仍然向llvm: stable 4.0.0 (bottled), HEAD [keg-only]显示瓶装安装,这让我感到困惑。我完全搞砸了吗?/usr/local/opt/llvm/bin中安装的llvm可执行文件是预构建的可执行文件(还是brew rm llvm删除了它们?)还是我从源头上建造的新的?有可能我现在有两个相互冲突的llvm安装吗?
发布于 2017-03-25 17:34:03
brew info llvm的第一行与您的安装方法无关。
例如,我的brew info git的前几行(我从源代码中安装了一条):
git: stable 2.12.2 (bottled), HEAD
Distributed revision control system
https://git-scm.com
/usr/local/Cellar/git/2.11.1 (1,456 files, 32.4MB)
Built from source on 2017-02-03 at 23:07:01 with: --with-blk-sha1
/usr/local/Cellar/git/2.12.0 (1,452 files, 32.9MB)
Built from source on 2017-02-27 at 04:22:05 with: --with-blk-sha1
/usr/local/Cellar/git/2.12.2 (1,454 files, 32.9MB) *
Built from source on 2017-03-26 at 02:11:02 with: --with-blk-sha1
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git.rb当前使用或链接到*的版本是用/usr/local/opt/固定的。
https://stackoverflow.com/questions/42995453
复制相似问题