Try installing curl with the dev libraries:

sudo apt update &&
sudo apt upgrade &&
sudo apt install curl libcurl4-openssl-dev
Answer from Josh on Stack Overflow
🌐
GitHub
github.com › JosephP91 › curlcpp › issues › 13
missing: CURL_LIBRARY CURL_INCLUDE_DIR · Issue #13 · JosephP91/curlcpp
September 17, 2014 - I'm new to curl, I hope anyone could help to solve this I have installed curl from http://www.confusedbycode.com/curl/ when I'm trying cmake for visual studio v12 2013..I'm getting following error missing: CURL_LIBRARY CURL_INCLUDE_DIR T...
Author   JosephP91
Discussions

Bug: Can't build LLAMA_CURL=ON to embed curl on windows x64 build.
What happened? When I build the following: cmake -B build -DGGML_CUDA=ON -DLLAMA_CURL=ON -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.20348. -- OpenMP found -- Using llamafi... More on github.com
🌐 github.com
5
October 18, 2024
FindCURL doesn't set CURL_LIBRARIES and CURL_INCLUDE_DIRS
I have build the libcurl from source with cmake and installed to /usr/local/ and I used find_package(CURL 7.88.1 EXACT REQUIRED) in my project’s main CMakeLists.txt. It find CURL with 7.88.1 version, however, when I want to print CURL_LIBRARIES and CURL_INCLUDE_DIRS in CMakeLists.txt prints ... More on discourse.cmake.org
🌐 discourse.cmake.org
3
0
March 7, 2023
VS2022 + vspkg + CMake: Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) - Stack Overflow
There are a few other questions that hit the same error, but I don't see any that deal with this specific configuration. In short: VS2022 vcpkg libcurl This seems like it should be straightforwar... More on stackoverflow.com
🌐 stackoverflow.com
CMake with ENABLE_DATE_TESTING=ON fails with error "Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)"
This identical error occurs in on both Linux + Windows: Ubuntu v18.04 with GCC and CMake v3.16.2 Windows 10 with MSVC 2019 and CMake v3.15.2 Environment 1 of 2: Ubuntu v18.04 + GCC Ubuntu v18.04 LT... More on github.com
🌐 github.com
3
February 23, 2020
🌐
Stack Overflow
stackoverflow.com › questions › 72630945 › cmake-could-not-find-curl-missing-curl-library-curl-include-dir
windows - cmake: Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) - Stack Overflow
# This conflicts with the "curlpp.lib" import library corresponding to "curlpp.dll", # so we add a "lib" prefix (which is default on other platforms anyway): SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES PREFIX "lib") target_link_libraries(${PROJECT_NAME}_static ${CURL_LIBRARIES} ${CONAN_LIBS}) # install headers install(DIRECTORY include/utilspp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/utilspp") install(DIRECTORY include/curlpp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/curlpp") install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_static RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
🌐
Reddit
reddit.com › r/askprogramming › how to use libcurl on clion on windows?
r/AskProgramming on Reddit: How to use libcurl on CLion on Windows?
June 11, 2021 - find_package(CURL REQUIRED) include_directories(${CURL_INCLUDE_DIR}) target_link_libraries(maptile ${CURL_LIBRARIES}) The same lines don't produce the same effect on Windows, however, as I get this error: Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
🌐
GitHub
github.com › ggml-org › llama.cpp › issues › 9937
Bug: Can't build LLAMA_CURL=ON to embed curl on windows x64 build. · Issue #9937 · ggml-org/llama.cpp
October 18, 2024 - the following envars are set: CURL_INCLUDE_DIR=C:\Tools\Curl\curl-8.10.1_5-win64-mingw\include CURL_LIBRARY=C:\Tools\Curl\curl-8.10.1_5-win64-mingw\lib Directory of C:\Tools\Curl\curl-8.10.1_5-win64-mingw\include 17/10/2024 10:20 <DIR> . 17/10/2024 10:20 <DIR> ..
Author   ggml-org
🌐
GitHub
github.com › HowardHinnant › date › issues › 546
CMake with ENABLE_DATE_TESTING=ON fails with error "Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)" · Issue #546 · HowardHinnant/date
February 23, 2020 - You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... CMake with ENABLE_DATE_TESTING=ON fails with error "Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)"#546
Author   HowardHinnant
Find elsewhere
🌐
CMake
cmake.cmake.narkive.com › b9mCDpdC › win32-unable-to-find-curl-library-with-find-library
[CMake] Win32: unable to find Curl library with FIND_LIBRARY
Post by Stephen Collyer I'm modifying FindCURL.cmake to match my local Win32 installation c:\Program Files\curl\libcurl.dll c:\Program Files\curl\include\curl\curl.h I've managed to find the include directory by changing the FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h curl/include/curl/curl.h) The final path matches the layout and CURL_INCLUDE_DIR is set.
🌐
CMake Discourse
discourse.cmake.org › usage
Problem with findpackage(CURL REQUIRED) and precompiled curl 7.68.0 for Windows - Usage - CMake Discourse
February 23, 2020 - Hi, I am using CMake 3.16.3 and having problems with the provided FindCurl.cmake script. I have unzipped the precompiled version downloaded from the curl website in a given location and set both CMAKE_PREFIX_PATH and CMAKE_MODULE_PATH to that location. CMake can locate the version and header files just fine, but fails with the library: Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.68.0") I think it might be due to the fact that the precompiled package contains libcurl.a and l...
Top answer
1 of 2
19

The names of the packages for programs and libraries in Debian (and Raspbian) are standardized, and sometimes differ from the names the libraries give themselves or the tag or symbol names for them.

You should search for "curl" on the package system, and you will find the curl-related libraries, which might be what you want.

Packages ending with a "-dev" are the ones you usually need when you want to have something compiled, they will install the includes and other files needed for that.

Try a:

apt-cache search curl

To find out all the packages with "curl" in the package name.

You are probably looking for one of these:

libcurl3 - easy-to-use client-side URL transfer library (OpenSSL flavour)

libcurl3-dbg - debugging symbols for libcurl (OpenSSL, GnuTLS and NSS flavours)

libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavour)

libcurl3-nss - easy-to-use client-side URL transfer library (NSS flavour)

libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS flavour)

libcurl4-nss-dev - development files and documentation for libcurl (NSS flavour)

libcurl4-openssl-dev - development files and documentation for libcurl (OpenSSL flavour)

I would try to get the last one, the openssl-dev.

apt-get install libcurl4-openssl-dev

And then try to compile the software again. If that doesn't work, try to install the "libcurl3" as a second option.

2 of 2
0

I had a similar problem. To make it short:

Ubuntu:

sudo apt-get install libcurl4-openssl-dev 

CentOS:

sudo yum install libcurl-devel 
🌐
GitHub
github.com › rpm-software-management › librepo › issues › 96
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) · Issue #96 · rpm-software-management/librepo
February 14, 2017 - You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... When I run: cmake .. , it throws: Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) , but I have install the curl.
Author   rpm-software-management
🌐
DebugPoint
debugpoint.com › home › tutorials › how to fix: could not find curl error in ubuntu and other linux
[Fixed] Could not find CURL error in Ubuntu and Other Linux
February 11, 2023 - Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on ... ... To fix this error, you need to install several packages. They are distribution specific. Open a terminal window and install the following for Debian, Ubuntu and related ...
🌐
GitHub
github.com › microsoft › vcpkg › issues › 27812
find_package: Could NOT find CURL · Issue #27812 · microsoft/vcpkg
November 14, 2022 - I have installed vcpkg in classic (not manifest) mode, in C:\VCPKG, and run vcpkg install curl. CMake cannot find the package, ostensiblu because it doesn't find the library: PS E:\cmake> cmake . -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scrips/bu...
Author   microsoft
🌐
Medium
medium.com › @fixitblog › solved-could-not-find-curl-missing-curl-library-curl-include-dir-on-cmake-6c77cf12c1c6
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on CMake | by Ted James | Medium
October 3, 2024 - If it is installed, delete your CMakeCache.txt file and re-run CMake. If you don’t want to install it, pass -DCURL_LIBRARY=<curl_lib_path> -DCURL_INCLUDE_DIR=<curl_include_path to your CMake call.
🌐
Stack Overflow
stackoverflow.com › questions › 59041711 › cmake-error-missing-curl-library-curl-include-dir-on-windows-10
c++ - Cmake error "missing: CURL_LIBRARY CURL_INCLUDE_DIR" on Windows 10 - Stack Overflow
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.16/Modules/FindCURL.cmake:143 (find_package_handle_standard_args) tests/unit/CMakeLists.txt:59 (find_package)
🌐
GitHub
github.com › Ettercap › ettercap › issues › 170
Could NOT find CURL but curl is already installed · Issue #170 · Ettercap/ettercap
You switched accounts on another tab or window. Reload to refresh your session. ... Hello, i cant figure out why ettercap wont install. I am getting error: $ /build/cmake ../ CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) (Required is at least version "7.26.0") Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindCURL.cmake:52 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeFiles/lib_check.cmake:110 (find_package) CMakeLists.txt:31 (include)
Author   Ettercap