mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
fix : macos clean compilation fail, brew install some missed library (#28717)
fix macOS compilation fail, related #28715 1) install_deps.sh missed to install some dependencies 2) llvm can not be found without a soft link Signed-off-by: xiaofan luan <xiaofanluan@xiaofandeMacBook-Pro.local> Co-authored-by: xiaofan luan <xiaofanluan@xiaofandeMacBook-Pro.local>
This commit is contained in:
parent
8a9ab69369
commit
f13ef1665a
@ -56,7 +56,7 @@ function install_linux_deps() {
|
|||||||
|
|
||||||
function install_mac_deps() {
|
function install_mac_deps() {
|
||||||
sudo xcode-select --install > /dev/null 2>&1
|
sudo xcode-select --install > /dev/null 2>&1
|
||||||
brew install libomp ninja cmake llvm@15 ccache grep pkg-config zip unzip
|
brew install boost libomp ninja cmake llvm@15 ccache grep pkg-config zip unzip tbb
|
||||||
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
|
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
|
||||||
brew update && brew upgrade && brew cleanup
|
brew update && brew upgrade && brew cleanup
|
||||||
|
|
||||||
@ -66,6 +66,8 @@ function install_mac_deps() {
|
|||||||
brew install openssl
|
brew install openssl
|
||||||
brew install librdkafka
|
brew install librdkafka
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo ln -s "$(brew --prefix llvm@15)" "/usr/local/opt/llvm"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! command -v go &> /dev/null
|
if ! command -v go &> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user