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
This commit is contained in:
Istvan 2020-04-06 16:18:04 -07:00 committed by Facebook GitHub Bot
parent a67fb4c9bd
commit a56439bb7f
1 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -ex
ROCKSDB_VERSION="5.10.3" ROCKSDB_VERSION="6.7.3"
ZSTD_VERSION="1.1.3" ZSTD_VERSION="1.4.4"
echo "This script configures CentOS with everything needed to build and run RocksDB" 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/ chown -R vagrant:vagrant /usr/local/rocksdb/
sudo -u vagrant make static_lib sudo -u vagrant make static_lib
cd examples/ cd examples/
sudo -u vagrant make all sudo -u vagrant LD_LIBRARY_PATH=/usr/local/lib/ make all
sudo -u vagrant ./c_simple_example sudo -u vagrant LD_LIBRARY_PATH=/usr/local/lib/ ./c_simple_example