首页 > 技术文章 > 关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP's pdo_sqlite extension.的解决

Amos-Turing 2016-10-24 23:24 原文

$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.jso
n. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-pdo_sqlite * is missing from your system.
Install or enable PHP's pdo_sqlite extension.

今天在github上下载了一个Symfony的demo,解决报错,各种查找,最终还是找到了php.ini这个文件(文件在你的 php安装目录下面:我的C:\php5\php-5.5.30-nts-Win32-VC11-x64,)

 

打开文件找到以下代码:(解决办法就是我写的去掉分号!!!!!!!!!!)

 

.....
;extension
=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll extension=ext\php_pdo_pgsql.dll  (2:我顺便把这里的";"分号去掉了) extension=php_pdo_sqlite.dll     (1:我把这里的";"分号去掉了) ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll

......

然后保存就ok了,你可以找到etx目录下,那里面全是关于数据库的脚本;

我现在觉得使用哪个,就把哪个前面的分号去掉,但不知道是不是这样子,至少没有抱错!

参考Stack overflow百度经验

 

微信公众号:

 

推荐阅读