[英]How to Install cURL on PHP5 on a remote Server
我正在嘗試通過Mac在遠程服務器上安裝cURL,但是由於某種原因,我無法這樣做。
這是我遵循的步驟:-
使(給我錯誤:-(如下))
./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
進行安裝(給我錯誤)
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.