未验证 提交 2e9622ff 编写于 作者: J Jin Hai 提交者: GitHub

Merge pull request #319 from youny626/misc

Update install.md
...@@ -17,6 +17,7 @@ Please mark all change in change log and use the ticket from JIRA. ...@@ -17,6 +17,7 @@ Please mark all change in change log and use the ticket from JIRA.
- \#284 - Change C++ SDK to shared library - \#284 - Change C++ SDK to shared library
- \#260 - C++ SDK README - \#260 - C++ SDK README
- \#314 - add Find FAISS in CMake - \#314 - add Find FAISS in CMake
- \#310 - Add Q&A for 'protocol https not supported or disable in libcurl' issue
## Task ## Task
......
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
## Software requirements ## Software requirements
- Ubuntu 18.04 or higher - Ubuntu 18.04 or higher
- CMake 3.14 or higher - CMake 3.12 or higher
##### For GPU version, you will also need:
- CUDA 10.0 or higher - CUDA 10.0 or higher
- NVIDIA driver 418 or higher - NVIDIA driver 418 or higher
...@@ -12,19 +15,24 @@ ...@@ -12,19 +15,24 @@
### Step 1 Install dependencies ### Step 1 Install dependencies
```shell ```shell
$ cd [Milvus sourcecode path]/core $ cd [Milvus root path]/core
$ ./ubuntu_build_deps.sh $ ./ubuntu_build_deps.sh
``` ```
### Step 2 Build ### Step 2 Build
```shell ```shell
$ cd [Milvus sourcecode path]/core $ cd [Milvus root path]/core
$ ./build.sh -t Debug $ ./build.sh -t Debug
or or
$ ./build.sh -t Release $ ./build.sh -t Release
``` ```
By default, it will build CPU version. To build GPU version, add `-g` option
```
$ ./build.sh -g
```
When the build is completed, all the stuff that you need in order to run Milvus will be installed under `[Milvus root path]/core/milvus`. When the build is completed, all the stuff that you need in order to run Milvus will be installed under `[Milvus root path]/core/milvus`.
## Launch Milvus server ## Launch Milvus server
...@@ -36,7 +44,7 @@ $ cd [Milvus root path]/core/milvus ...@@ -36,7 +44,7 @@ $ cd [Milvus root path]/core/milvus
Add `lib/` directory to `LD_LIBRARY_PATH` Add `lib/` directory to `LD_LIBRARY_PATH`
``` ```
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/milvus/lib $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[Milvus root path]/core/milvus/lib
``` ```
Then start Milvus server: Then start Milvus server:
...@@ -51,3 +59,15 @@ To stop Milvus server, run: ...@@ -51,3 +59,15 @@ To stop Milvus server, run:
```shell ```shell
$ ./stop_server.sh $ ./stop_server.sh
``` ```
## Troubleshooting
1. If you encounter the following error when compiling:
`protocol https not supported or disabled in libcurl`.
First, make sure you have `libcurl4-openssl-dev` installed in your system.
Then try reinstall CMake from source with `--system-curl` option:
```
$ ./bootstrap --system-curl
$ make
$ sudo make install
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册