Skip to content

Commit

Permalink
Adding new build script for CentOS 7 (#6617)
Browse files Browse the repository at this point in the history
Summary:
Updating build script for CentOS 7
Pull Request resolved: facebook/rocksdb#6617

Reviewed By: riversand963

Differential Revision: D20879268

Pulled By: anand1976

fbshipit-source-id: 414b99e39cd77ba31373ff7aff50121d78a93d1c
  • Loading branch information
Istvan authored and facebook-github-bot committed Apr 6, 2020
1 parent a67fb4c commit a56439b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build_tools/setup_centos7.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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

0 comments on commit a56439b

Please sign in to comment.