How to install CURL?

by Stephen on September 19, 2008

Instructions to install CURL:

cd /usr/local/src
wget http://curl.haxx.se/download/curl-7.19.0.tar.gz
tar zxf curl-7.19.0.tar.gz
cd curl-7.19.0
./configure --prefix=/usr/local --with-ssl=/usr/include/openssl
make
make install

 
CURL should now be installed.

{ 9 comments… read them below or add one }

mike March 14, 2009 at 5:00 pm

thank u very much,

Reply

alex April 3, 2009 at 4:15 am

perfect! thanks =]

Reply

kevin April 6, 2009 at 10:22 am

THANK YOU!

I found your page listed # 9 in google with the following string:

how to install Curl openssl whm cpanel

I am running the following:

cPanel 11.24.4-S35075 – WHM 11.24.2 – X 3.9
REDHAT Enterprise 5.3 i686 standard on host

So I figured out that I had to edit the commands you have just a bit

This worked for me:
./configure prefix=/usr/local ssl=/usr/include/openssl

After searching and asking many places I could not find a clear answer.

Great resource!

Reply

James September 15, 2009 at 9:15 am

I tried this on my centos installation and it said that no suitable C compiler could be found in $PATH. I am wondering how to solve this, and what an acceptable C compiler would be anyway. Any tips? The config log says that it is checking for gcc, cc and cl.exe and it can’t find them. Mmm, what to do ???

Reply

admin September 15, 2009 at 9:50 am

You can easily install GCC with this command:

yum install gcc

That would install GCC and its dependencies.

Reply

maniaccoder November 6, 2009 at 2:59 am

how can i install dis??? can i use putty for configuring??

Reply

Stephen November 6, 2009 at 8:47 am

@maniaccoder: Yes, you can.

Reply

parth February 2, 2010 at 9:23 pm

Thanks !!! somehow yum install curl-php was not working for me.

Reply

keatonh August 16, 2010 at 5:00 am

thanks a lot. it’s very useful.

Reply

Leave a Comment

Previous post:

Next post: