$ 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目錄下,那里面全是關於數據庫的腳本;
我現在覺得使用哪個,就把哪個前面的分號去掉,但不知道是不是這樣子,至少沒有抱錯!
微信公眾號: