fix: add openblas in install_deps.sh (#33065)

Install openblas using apt or yum in scripts/install_deps.sh, update
documentations and fix some typos related to build and installation.

issue: #33056, #33066

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
pull/33136/head
Yinzuo Jiang 2024-05-17 14:53:37 +08:00 committed by GitHub
parent 225f4a6134
commit 2cc50d80a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 8 deletions

View File

@ -195,7 +195,13 @@ To build the Milvus project, run the following command:
$ make
```
If this command succeed, you will now have an executable at `bin/milvus` off of your Milvus project directory.
If this command succeeds, you will now have an executable at `bin/milvus` in your Milvus project directory.
If you want to run the `bin/milvus` executable on the host machine, you need to set `LD_LIBRARY_PATH` temporarily:
```shell
$ LD_LIBRARY_PATH=./internal/core/output/lib:lib:$LD_LIBRARY_PATH ./bin/milvus
```
If you want to update proto file before `make`, we can use the following command:
@ -500,7 +506,6 @@ $ ./build/build_image.sh // build milvus latest docker image
$ docker images // check if milvus latest image is ready
REPOSITORY TAG IMAGE ID CREATED SIZE
milvusdb/milvus latest 63c62ff7c1b7 52 minutes ago 570MB
$ install with docker compose
```
## GitHub Flow
@ -602,4 +607,4 @@ A: Reinstall llvm@15
brew reinstall llvm@15
export LDFLAGS="-L/opt/homebrew/opt/llvm@15/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm@15/include"
```
```

View File

@ -60,9 +60,9 @@ Zilliz Cloud is a fully managed service on cloud and the simplest way to deploy
### Install Milvus
- [Standalone Quick Start Guide](https://milvus.io/docs/v2.0.x/install_standalone-docker.md)
- [Standalone Quick Start Guide](https://milvus.io/docs/install_standalone-docker.md)
- [Cluster Quick Start Guide](https://milvus.io/docs/v2.0.x/install_cluster-docker.md)
- [Cluster Quick Start Guide](https://milvus.io/docs/install_cluster-docker.md)
- [Advanced Deployment](https://github.com/milvus-io/milvus/wiki)

View File

@ -34,7 +34,7 @@ RUN /opt/vcpkg/bootstrap-vcpkg.sh -disableMetrics && ln -s /opt/vcpkg/vcpkg /usr
RUN vcpkg install azure-identity-cpp azure-storage-blobs-cpp gtest
# Instal openblas
# Install openblas
# RUN wget https://github.com/xianyi/OpenBLAS/archive/v0.3.21.tar.gz && \
# tar zxvf v0.3.21.tar.gz && cd OpenBLAS-0.3.21 && \
# make NO_STATIC=1 NO_LAPACK=1 NO_LAPACKE=1 NO_CBLAS=1 NO_AFFINITY=1 USE_OPENMP=1 \

View File

@ -23,6 +23,14 @@ $ go get github.com/golang/protobuf/protoc-gen-go@v1.3.2
Install OpenBlas library
install using apt
```shell
sudo apt install -y libopenblas-dev
```
or build from source code
```shell
$ wget https://github.com/xianyi/OpenBLAS/archive/v0.3.9.tar.gz && \
$ tar zxvf v0.3.9.tar.gz && cd OpenBLAS-0.3.9 && \

View File

@ -22,7 +22,7 @@ function install_linux_deps() {
sudo apt install -y wget curl ca-certificates gnupg2 \
g++ gcc gfortran git make ccache libssl-dev zlib1g-dev zip unzip \
clang-format-10 clang-tidy-10 lcov libtool m4 autoconf automake python3 python3-pip \
pkg-config uuid-dev libaio-dev libgoogle-perftools-dev
pkg-config uuid-dev libaio-dev libopenblas-dev libgoogle-perftools-dev
sudo pip3 install conan==1.61.0
elif [[ -x "$(command -v yum)" ]]; then
@ -31,7 +31,7 @@ function install_linux_deps() {
sudo yum install -y wget curl which \
git make automake python3-devel \
devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran devtoolset-11-libatomic-devel \
llvm-toolset-11.0-clang llvm-toolset-11.0-clang-tools-extra \
llvm-toolset-11.0-clang llvm-toolset-11.0-clang-tools-extra openblas-devel \
libaio libuuid-devel zip unzip \
ccache lcov libtool m4 autoconf automake