Can not use command line interpreter

前端 未结 9 1029
盖世英雄少女心
盖世英雄少女心 2021-02-05 09:58

I have tried to execute simple php code in the php interpreter. When I executed the command php -a I getting the message

Interactive mode ena

9条回答
  •  温柔的废话
    2021-02-05 10:46

    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?

提交回复
热议问题