Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

not able to compile a libcurl program in C

Tags:

c

libcurl

I am trying to run a libcurl program, but I am getting the following error:

fatal error: curl/curl.h: No such file or directory

Can anyone give me step by step instructions to install libcurl on a linux machine. Thanks in advance.

like image 354
user537670 Avatar asked Nov 26 '25 10:11

user537670


2 Answers

I found this result on Google, but I'm using Fedora, and had to use this command:

sudo yum install libcurl-devel

Hopefully, this will help someone who is trying to do what I just did.

like image 196
SSH This Avatar answered Nov 28 '25 23:11

SSH This


@ compile time linkit

gcc -Wall hellWeb.c -lcurl -o helloWeb
like image 38
siz Avatar answered Nov 29 '25 00:11

siz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!