首页 > 代码库 > 关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP's pdo_sqlite extension.的解决
关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP's pdo_sqlite extension.的解决
$ 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和百度经验
关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP's pdo_sqlite extension.的解决
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。