From a7b27d3c46cbcf0e8dec6afbc4ce5a361cf6e966 Mon Sep 17 00:00:00 2001 From: zhiru Date: Wed, 12 Jun 2019 11:05:33 +0800 Subject: [PATCH] Change README.md in cpp Former-commit-id: c6ad84a6488350bce6f007df8a9e81ad3817fc88 --- cpp/CHANGELOG.md | 1 + cpp/README.md | 37 ++++++++++++++++++++----------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 0c940817cd..50e62d7dfc 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -24,6 +24,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-45 - Implement DeleteTable interface ## Task +- MS-74 - Change README.md in cpp # MegaSearch 0.2.0 (2019-05-31) diff --git a/cpp/README.md b/cpp/README.md index f65e973832..32b79dae98 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -2,20 +2,12 @@ #### Step 1: install necessery tools centos7 : - yum install gfortran libsqlite3-dev libsnappy-dev libzstd-dev bzip2 + yum install gfortran flex bison ubuntu16.04 : - sudo apt-get install gfortran libsqlite3-dev libsnappy-dev libzstd-dev bzip2 liblz4-dev + sudo apt-get install gfortran flex bison -#### Step 2: build third-parties -Note: If you want to debug into third-parties, you can build debug with CXXFLAGS='-g -O0' with option -: -t Debug - - cd [sourcecode path]/cpp/thid_party - ./build.sh -t Debug - ./build.sh -t Release - -#### Step 3: build(output to cmake_build folder) +#### Step 2: build(output to cmake_build folder) cmake_build/src/vecwise_server is the server cmake_build/src/libvecwise_engine.a is the static library @@ -24,19 +16,30 @@ cmake_build/src/libvecwise_engine.a is the static library ./build.sh -t Debug ./build.sh -t Release ./build.sh -g # Build GPU version - + +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 + ``` + #### To build unittest: - + ./build.sh -u or ./build.sh --unittest - - + ### Launch server Set config in cpp/conf/server_config.yaml Then launch server with config: - cd [build output path] start_server.sh stop_server.sh @@ -44,7 +47,7 @@ Then launch server with config: ### Launch test_client(only for debug) If you want to test remote api, you can build test_client. test_client use same config file with server: - + cd [build output path]/test_client test_client -c [sourcecode path]/cpp/conf/server_config.yaml