Last active
October 12, 2017 16:52
-
-
Save datatypevoid/04785eed96175170850258efec7ecf8e to your computer and use it in GitHub Desktop.
Download forked cpp_redis (version 4.1.0), build from source, install, and clean-up. Tested on Ubuntu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# install-cpp-redis.sh | |
# Download cpp_redis (version 4.1.0), build from source, install, and | |
# clean-up. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - build-essential | |
# - echo | |
# - rm | |
# - tar | |
# - wget | |
git clone https://github.com/datatypevoid/cpp_redis.git | |
cd ./cpp_redis | |
## Get tacopie submodule | |
git submodule init && git submodule update | |
## Create a build directory and move into it | |
mkdir build && cd build | |
## Generate the Makefile using CMake | |
cmake .. -DCMAKE_BUILD_TYPE=Release | |
## Build the library | |
make -j 4 | |
## Install the library | |
make install | |
# Clean-up | |
cd ../../ | |
rm -rf cpp_redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment