php CLI mode 开启
anlondon Lv6

使用composer安装软件包出现类似报错

Problem 1

  • Installation request for doctrine/orm v2.5.6 -> satisfiable by doctrine/orm[v2.5.6].
  • doctrine/orm v2.5.6 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.
    You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

根据doctrine/orm v2.5.6 requires ext-pdo * -> the requested PHP extension pdo is missing from your system. 提示可知,是因为扩展pdo没有开启。

命令行输入# php --ini获得php.ini的位置

取消;extension=php_pdo.dll的注释
注:php7^的扩展简写为extension=pdo

 Comments