簡體   English   中英

如何在遠程服務器上的PHP5上安裝cURL

[英]How to Install cURL on PHP5 on a remote Server

我正在嘗試通過Mac在遠程服務器上安裝cURL,但是由於某種原因,我無法這樣做。

這是我遵循的步驟:-

  1. SSH遠程服務器
  2. wget http://curl.haxx.se/download/curl-7.14.0.tar.gz
  3. zcat curl-7.14.0.tar.gz | 焦油xvf-
  4. 光盤curl-7.14.0 /
  5. 使(給我錯誤:-(如下))

     ./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: *** No rule to make target `install'. Stop. 

你們可以幫我嗎? 我只需要在服務器上安裝cURL。 我也嘗試過運行sudo apt-get install php5-curl但是它給了我apt-get不存在的錯誤。

根據我們的說法以及您正在使用SUSE的事實,您似乎可以簡單地使用Zypper(程序包管理器)進行安裝。 嘗試以下命令:

zypper install php5-curl

然后,重新啟動apache。

/etc/init.d/apache2 restart

所以,這就是我所做的。

logged in with ssh

sudo zypper in curl

sudo /sbin/yast -i curl

zypper in php5-curl

sudo service apache2 restart

非常感謝Matthew。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM