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 OverflowThe 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.
I had a similar problem. To make it short:
Ubuntu:
sudo apt-get install libcurl4-openssl-dev
CentOS:
sudo yum install libcurl-devel
find_package: Could NOT find CURL
Compile bug: Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) - Fedora 42 - building using CUDA
curl not found
CMake with ENABLE_DATE_TESTING=ON fails with error "Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)"
Hi,
I hope someone can help me with this. I am pretty stumped and tried everything.
Versions:
PHP: 8.2.18 TS (Treid the NTS version)
Apache: 2.4.51
Wampserver: 3.2.6 64bit
Windows 10 64bit
I am having an issue where I get the following message
PHP Warning: PHP Startup: Unable to load dynamic library 'curl'
-
When I view my localhost it curl isn't on the list
-
When I type in the cmd php -m it states curl is there.
-
In the tray for wamp, under php extensions curl is ticked
-
When I run phpinfo() Curl isn't picked up
I have tried the following solutions to resolve issue
-
Paste path to my php into the environment variables. this solved the issue for me on 8.2.9
-
I tried this last week. Thought I would delete it and try again but same results
Only things I can think of is updating my wamp to latest. but this is a company laptop so I don't want to do something that will probably have me taking the machine to IT or upgrading it resulting in me have to reconfigure all my settings. I would do this but I want to know I exhasuted all my options before I take this step.
Yes the extension has been uncommented in the ini file.
let me know if you require more info
Thank you
edit: couldnt edit the title but i was basically trying to say why is my code still not compiling even though ive added in the libraries (at least to my knowledge )
starting to play with some APIs in C++ and i have this code right here:
#include <iostream>
#include <string>
#include <stdio.h>
#include <curl/curl.h>
using namespace std;
int main() {
CURL* hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://coinranking1.p.rapidapi.com/coins?referenceCurrencyUuid=yhjMzLPhuIDl&timePeriod=24h&tiers%5B0%5D=1&orderBy=marketCap&orderDirection=desc&limit=50&offset=0");
struct curl_slist* headers = NULL;
headers = curl_slist_append(headers, "X-RapidAPI-Key: f9feab3ecfmsh6581fgfd78gfd8p175b11jsn324272c6a0fa");
headers = curl_slist_append(headers, "X-RapidAPI-Host: coinranking1.p.rapidapi.com");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
}and originally when i tried to compile my code, the problem that i was having was at curl/curl.h.
so i did the following:
-
downloaded curl.h via this link:
-
https://curl.se/download.html
-
-
downloaded the .zip file
-
extracted the .zip file
-
navigated to the include file
-
opened up properties
-
https://imgur.com/a/3vzTOJw
-
-
went to "additional include directories"
-
https://imgur.com/a/COSY8cf
-
-
clicked okay
-
tried rerunning
-
and got the error message :
-
cannot open inclue file curl/curl.h files
-
this is what my filepath looksl ike for my include file :https://imgur.com/a/GGfpGRz
and to confirm these are how my "additional include directories" look like: https://imgur.com/a/C0Et2dq
Hi all I am working on a remote server where I have to run a install.sh script to complete the installation but the curl command is not installed on that machine. I cant sudo install the curl as it required password from the admin what do I do.