关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP

Posted 01coding.com

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP相关的知识,希望对你有一定的参考价值。

$ 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 PHPs 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的主要内容,如果未能解决你的问题,请参考以下文章

关于The requested resource is not available这个问题

Unable to find the wrapper "https"错误的解决办法

linux下配置lamp时候出现The requested URL /info.php was not found on this server问题

php5apache2_2.dll被appaceh httpd.conf加载出错 The requested operation has failed

php https://expressionengine.com/forums/topic/160486/views-unable-to-load-the-requested-file#773142

关于Git上传项目报错error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413