From a56439bb7f8a9f51fbb97494c5b1c99119ccfaba Mon Sep 17 00:00:00 2001 From: Istvan Date: Mon, 6 Apr 2020 16:18:04 -0700 Subject: [PATCH] Adding new build script for CentOS 7 (#6617) Summary: Updating build script for CentOS 7 Pull Request resolved: https://github.com/facebook/rocksdb/pull/6617 Reviewed By: riversand963 Differential Revision: D20879268 Pulled By: anand1976 fbshipit-source-id: 414b99e39cd77ba31373ff7aff50121d78a93d1c --- build_tools/setup_centos7.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build_tools/setup_centos7.sh b/build_tools/setup_centos7.sh index 060614dd1..474d91a3d 100755 --- a/build_tools/setup_centos7.sh +++ b/build_tools/setup_centos7.sh @@ -1,9 +1,9 @@ #!/bin/bash # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. -set -e +set -ex -ROCKSDB_VERSION="5.10.3" -ZSTD_VERSION="1.1.3" +ROCKSDB_VERSION="6.7.3" +ZSTD_VERSION="1.4.4" echo "This script configures CentOS with everything needed to build and run RocksDB" @@ -40,5 +40,6 @@ cd /usr/local/rocksdb chown -R vagrant:vagrant /usr/local/rocksdb/ sudo -u vagrant make static_lib cd examples/ -sudo -u vagrant make all -sudo -u vagrant ./c_simple_example +sudo -u vagrant LD_LIBRARY_PATH=/usr/local/lib/ make all +sudo -u vagrant LD_LIBRARY_PATH=/usr/local/lib/ ./c_simple_example +