使用自制软件从源代码安装 llvm 不正确?
Incorrect installation of llvm from source with homebrew?
我想使用 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 安装?
第一行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/
。
我想使用 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
.
在这些命令之后,令我感到困惑的是 brew info llvm
仍然显示 llvm: stable 4.0.0 (bottled), HEAD [keg-only]
瓶装安装。我完全搞砸了吗?安装在 /usr/local/opt/llvm/bin
中的 llvm 可执行文件是预构建的(还是 brew rm llvm
删除了它们?)还是我从源代码构建的新文件?是否有可能我现在有两个冲突的 llvm 安装?
第一行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/
。