Installing Microsoft Casablanca (cpprestsdk) on RHEL7 / CentOS7

This is a library used to run a HTTP/HTTPS server for a REST API.

Prerequisites

Shell commands in install cpprestsdk

sudo yum -y install openssl-devel
mkdir -p ~/src && cd ~/src
git clone https://github.com/Microsoft/cpprestsdk.git
cd cpprestsdk
git reset --hard v2.10.7
git submodule update --init
mkdir Release/build.release
cd Release/build.release
CC=gcc CXX=g++ cmake3 .. -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DBUILD_TESTS=OFF -DBUILD_SAMPLES=OFF -DBUILD_SHARED_LIBS=OFF
make -j 8
sudo make install
sudo ldconfig /usr/local/lib /usr/local/lib64

 

 

Leave a Comment