Centos7.6 编译prometheuscpp报can not find CURL/CURL_LIBRARY CURL_INCLUDE_DIR
Centos7.6 编译报can not find CURL/CURL_LIBRARY CURL_INCLUDE_DIR
错误信息
cd ./source/;mkdir ./_build;cd ./_build;cmake ../ -DBUILD_SHARED_LIBS=OFF;make
mkdir: cannot create directory ‘./_build’: File exists
-- Could NOT find benchmark (missing: benchmark_DIR)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindCURL.cmake:169 (find_package_handle_standard_args)
push/CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
解决方法
yum install -y libcurl-devel