简体   繁体   中英

error in installation of php5-curl

i am trying to install php5-curl using the command

 sudo apt-get install php5-curl

but i am getting the following error

   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) ...

when i try running script having php requirement it gives error as

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

what is this error i tried uninstalling and installing php5-curl but he same error is coming everytime

您似乎缺少了包含命令行php解释器的php5-cli软件包。

sudo apt-get install php5-cli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM