安装php5 curl时出错

安装php5 curl时出错,php,curl,ubuntu-12.04,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

我正在尝试使用以下命令安装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,但每次都会出现相同的错误,您似乎缺少包含命令行php解释器的
php5 cli

sudo apt-get install php5-cli
您尝试过吗?获取此错误-->PHP已弃用:以“#”开头的注释在第0行未知的第1行的/etc/php5/cli/conf.d/ming.ini中弃用PHP警告:PHP启动:无法加载动态库“/usr/lib/php5/20090626/gd.so”-/usr/lib/php5/20090626/gd.so:无法打开共享对象文件:中没有此类文件或目录第0行未知PHP警告:PHP启动:无法加载动态库'/usr/lib/php5/20090626/imap.so'-/usr/lib/php5/20090626/imap.so:无法打开共享对象文件:第0行未知中也没有此类文件或目录,用于/intl.so、mcrypt.so等