我正在尝试通过Mac在远程服务器上安装cURL,但出于某种原因我无法这样做。
以下是我遵循的步骤: -
make(给我错误: - (如下))
./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 install(给我错误)
make: *** No rule to make target `install'. Stop.
sudo apt-get install php5-curl
,但它给了我错误,apt-get不存在。
答案 0 :(得分:5)
基于我们的convo以及您使用SUSE的事实,看起来您可以简单地使用Zypper(包管理器)来安装它。请尝试以下命令:
zypper install php5-curl
然后,重新启动apache。
/etc/init.d/apache2 restart
答案 1 :(得分:1)
所以,这就是我所做的。
logged in with ssh
sudo zypper in curl
sudo /sbin/yast -i curl
zypper in php5-curl
sudo service apache2 restart
非常感谢马修。