Skip to content

Instantly share code, notes, and snippets.

@datatypevoid
Last active October 12, 2017 16:52
Show Gist options
  • Save datatypevoid/04785eed96175170850258efec7ecf8e to your computer and use it in GitHub Desktop.
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.
#!/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