我正在尝试通过我的 Mac 在远程服务器上安装 cURL,但由于某种原因我无法这样做。
以下是我遵循的步骤:-
- ssh 远程服务器
- wget http://curl.haxx.se/download/curl-7.14.0.tar.gz
- zcat curl-7.14.0.tar.gz | 焦油 xvf -
- cd curl-7.14.0/
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: *** No rule to make target `install'. Stop.
你们能在这方面帮助我吗?我只需要在我的服务器上安装 cURL。我也尝试过运行sudo apt-get install php5-curl
,但它给了我错误,即 apt-get 不存在。