Steve
Steve

Reputation: 2588

How to Install cURL on PHP5 on a remote Server

I am trying to install cURL on a remote server through my Mac, but for some reason I am unable to do so.

Here are the steps I followed:-

  1. ssh'ed the remote server
  2. wget http://curl.haxx.se/download/curl-7.14.0.tar.gz
  3. zcat curl-7.14.0.tar.gz | tar xvf -
  4. cd curl-7.14.0/
  5. make (gave me the error:- (as followed))

    ./configure
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for sed... /usr/bin/sed
    checking for ar... ar
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking curl version... 7.14.0
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    make: *** [all] Error 1
    
  6. make install (gave me the error)

    make: *** No rule to make target `install'.  Stop.
    

Could you guys assist me in this? I just have to install cURL on my server. I also tried running sudo apt-get install php5-curl but it gave me error that apt-get doesn't exist.

Upvotes: 0

Views: 3537

Answers (2)

Steve
Steve

Reputation: 2588

So, this is what I did.

logged in with ssh

sudo zypper in curl

sudo /sbin/yast -i curl

zypper in php5-curl

sudo service apache2 restart

Thanks a lot Matthew.

Upvotes: 1

Matthew Blancarte
Matthew Blancarte

Reputation: 8301

Based on our convo and the fact that you are using SUSE, it looks like you can simply use Zypper (package manager) to install it. Try the following command:

zypper install php5-curl

Then, restart apache.

/etc/init.d/apache2 restart

Upvotes: 5

Related Questions