1
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

What would be the issue ?

2
  • which version of Ubuntu?
    – Stormvirux
    Mar 29, 2014 at 6:27
  • 12.04 brother ..
    – underscore
    Mar 29, 2014 at 6:27

1 Answer 1

1

Th package php5-readline is not present in 12.04 repository since the module is already packaged along with php5. Its only available in Saucy repository as a separate package as explained here in this launchpad page.

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.

So if you have installed the php5 then you just need to execute php -a to get Interactive mode enabled

This is the PPA, I use for php5

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .