无法找到软件包 php5-readline

无法找到软件包 php5-readline
samitha@ubuntu:~$ sudo apt-get install php5-readline
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5-readline

这是什么问题?

答案1

由于模块已与一起打包,因此存储库php5-readline中不存在该软件包。它仅在12.04php5Saucy作为单独的包在存储库中可用,如本文所述启动板页面

N.B.: In the saucy packaging, unlike the precise packaging, 
the php5-cli interactive mode does *not* include the readline module built in.
You will have to install the new php5-readline package for "php -a" to function reasonably.

因此,如果你已经安装了,php5那么你只需要执行php -a即可获得Interactive mode enabled

这是 PPA,我用于 php5

deb http://ppa.launchpad.net/ondrej/php5/ubuntu precise main 
deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu precise main 

相关内容