README.md 1.6 KB
Newer Older
G
groot 已提交
1 2
### Compilation
#### Step 1: install necessery tools
G
groot 已提交
3

G
groot 已提交
4
    centos7 : 
Z
zhiru 已提交
5
        yum install gfortran flex bison
G
groot 已提交
6 7
        
    ubuntu16.04 : 
Z
zhiru 已提交
8
        sudo apt-get install gfortran flex bison
G
groot 已提交
9

Z
zhiru 已提交
10
#### Step 2: build(output to cmake_build folder)
G
groot 已提交
11
cmake_build/src/milvus_server is the server
G
groot 已提交
12

G
groot 已提交
13
cmake_build/src/libmilvus_engine.a is the static library
G
groot 已提交
14 15 16 17

    cd [sourcecode path]/cpp
    ./build.sh -t Debug
    ./build.sh -t Release
18
    ./build.sh -l -t Release # Build license version(only available for Release)
Z
zhiru 已提交
19 20 21 22 23 24 25 26 27 28 29 30 31 32

If you encounter the following error when building:
`protocol https not supported or disabled in libcurl`

1. Install libcurl4-openssl-dev

2. Install cmake 3.14: 

   ```
   ./bootstrap --system-curl 
   make 
   sudo make install
   ```

G
groot 已提交
33
#### To build unittest:
Z
zhiru 已提交
34

G
groot 已提交
35 36 37
    ./build.sh -u
    or
    ./build.sh --unittest
Z
zhiru 已提交
38

J
jinhai 已提交
39
### Launch server
G
groot 已提交
40
Set config in cpp/conf/server_config.yaml
G
groot 已提交
41

J
jinhai 已提交
42
Then launch server with config:
G
groot 已提交
43 44 45
    cd [build output path]
    start_server.sh
    stop_server.sh
J
jinhai 已提交
46

J
jinhai 已提交
47
### Launch test_client(only for debug)
G
groot 已提交
48 49
If you want to test remote api, you can build test_client.
test_client use same config file with server:
Z
zhiru 已提交
50

G
groot 已提交
51 52 53
    cd [build output path]/test_client
    test_client -c [sourcecode path]/cpp/conf/server_config.yaml

J
jinhai 已提交
54 55 56 57 58 59 60 61 62 63
### License Generate
Use get_sys_info to get system info file.

    ./get_sys_info                  # system.info will be generated

Use license_generator to generate license file.

    ./license_generator -s system.info -l system.license -b 2019-05-15 -e 2019-08-14                 

Copy the license file to path assigned by license_path in server config file.