Can not use command line interpreter Can not use command line interpreter windows windows

Can not use command line interpreter


Install this:

php5-readline

then try use:

php -a


type php -m and make sure you have the readline module. If you don't you won't be able to use it.

http://www.php.net/manual/en/features.commandline.interactive.php

As of PHP 5.1.0, the CLI SAPI provides an interactive shell using the -a option if PHP is compiled with the --with-readline option.


There seems to be a compilation / linkage error between your PHP and libreadline. This is documented in PHP Bug #48759.

  • Did you compile PHP by yourself? Did you play around with --configure and didn't do a proper make clean before your final build?
  • Does php -m list readline as enabled feature? (Is PHP built with option --with-readline)
  • What is you php version?
  • What distribution do you use?
  • Do you have the libreadline (the *-dev package) installed?