我正在x86_64 MacOS 11上交叉编译arm64架构。clang/XCode支持它,但当需要外部库时,我面临一个问题。举个例子,让它得到提振。我知道arm64的瓶子是可用的,但是看起来没有办法选择它来安装。
arch -arm64 brew ...说这个体系结构是未知的,这听起来很公平。
所以问题是,wheather有一个选项,强迫brew安装瓶子为“外国”架构?
发布于 2022-01-23 14:17:05
感谢Homebrew https://github.com/Homebrew/discussions/discussions/2843
我让它使用这样的代码:
setopt sh_word_split
mkdir arm-homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C arm-homebrew
alias arm-brew='$(pwd)/arm-homebrew/bin/brew'
response=$(arm-brew fetch --force --bottle-tag=arm64_big_sur boost | grep "Downloaded to")
parsed=($response)
arm-brew install $parsed[3] https://stackoverflow.com/questions/70821136
复制相似问题