安装php5-curl时出错

时间:2014-05-12 08:14:45

标签: php curl ubuntu-12.04

我正在尝试使用命令

安装php5-curl
 sudo apt-get install php5-curl

但是我收到以下错误

   Reading package lists... Done
   Building dependency tree       
   Reading state information... Done
   The following extra packages will be installed:
   php5-common php5-fpm
   Suggested packages:
   php5-suhosin php-pear
   The following NEW packages will be installed:
   php5-common php5-curl php5-fpm
   0 upgraded, 3 newly installed, 0 to remove and 673 not upgraded.
   Need to get 0 B/4,919 kB of archives.
   After this operation, 10.8 MB of additional disk space will be used.
   Do you want to continue [Y/n]? y
   Selecting previously unselected package php5-common.
   (Reading database ... 144138 files and directories currently installed.)
   Unpacking php5-common (from .../php5-common_5.3.10-1ubuntu3.11_amd64.deb) ...
   Selecting previously unselected package php5-fpm.
   Unpacking php5-fpm (from .../php5-fpm_5.3.10-1ubuntu3.11_amd64.deb) ...
    Selecting previously unselected package php5-curl.
   Unpacking php5-curl (from .../php5-curl_5.3.10-1ubuntu3.11_amd64.deb) ...
   Processing triggers for ureadahead ...
   Processing triggers for man-db ...
    Setting up php5-common (5.3.10-1ubuntu3.11) ...
    Setting up php5-fpm (5.3.10-1ubuntu3.11) ...
   update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB  
   Default-Stop values (none)
   Setting up php5-curl (5.3.10-1ubuntu3.11) ...

当我尝试运行具有php要求的脚本时,它会给出错误

   /usr/bin/php: bad interpreter: No such file or directory

我试图卸载并安装php5-curl这个错误是什么,但每次都会出现同样的错误

1 个答案:

答案 0 :(得分:1)

您似乎错过了包含命令行php解释器的php5-cli包。

sudo apt-get install php5-cli