For GPU-enabled version, you will also need:

git clone

Install in Ubuntu

$ cd [Milvus root path]/core
$ ./

Install in CentOS

$ cd [Milvus root path]/core
$ ./
$ cd [Milvus root path]/core
$ ./ -t Debug


$ ./ -t Release

By default, it will build CPU-only version. To build GPU version, add -g option.

$ ./ -g

If you want to know the complete build options, run the following command.

$./ -h

When the build is completed, everything that you need in order to run Milvus will be installed under [Milvus root path]/core/milvus.

$ cd [Milvus root path]/core/milvus

Add lib/ directory to LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[Milvus root path]/core/milvus/lib

Then start Milvus server:

$ cd scripts
$ ./

To stop Milvus server, run:

$ ./

Error message: protocol https not supported or disabled in libcurl

Follow the steps below to solve this problem:

  1. Make sure you have libcurl4-openssl-dev installed in your system.
  2. Try reinstalling the latest CMake from source with --system-curl option:
   $ ./bootstrap --system-curl
   $ make
   $ sudo make install

If the --system-curl command doesn't work, you can also reinstall CMake in Ubuntu Software on your local computer.

Error message: internal compiler error

Try increasing the memory allocated to Docker. If this doesn't work, you can reduce the number of threads in CMake build in [Milvus root path]/core/

make -j 8 install || exit 1 # The default number of threads is 8.

Note: You might also need to configure CMake build for faiss in [Milvus root path]/core/src/index/thirdparty/faiss.

Error message: error while loading shared libraries:

Follow the steps below to solve this problem:

  1. Check whether is correctly installed.
  2. If is installed, check whether it is added to LD_LIBRARY_PATH.

CMake version is not supported

Follow the steps below to install a supported version of CMake:

  1. Remove the unsupported version of CMake.
  2. Get CMake 3.14 or higher. Here we get CMake 3.14.
    $ wget
    1. Extract the file and install CMake.
    $ tar zxvf cmake-3.14.7-Linux-x86_64.tar.gz
    $ mv cmake-3.14.7-Linux-x86_64 /opt/cmake-3.14.7
    $ ln -sf /opt/cmake-3.14.7/bin/* /usr/bin/