How to fix C++ "fatal error: curlpp/Easy.hpp: No such file or directory" on Ubuntu

Problem:

While trying to compile your C++ project, you see an error message such as

minio-cpp/include/http.h:21:10: fatal error: curlpp/Easy.hpp: No such file or directory
   21 | #include <curlpp/Easy.hpp>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Solution

You need to install the curlpp library, a C++ wrapper around libcurl. On Ubuntu or Debian, you can do that using

sudo apt -y install libcurlpp-dev