2016-06-12 89 views
0

我試圖更新PHP的作曲家,但我收到以下錯誤:PdoException更新作曲家時,找不到驅動程序

我試圖通過安裝pd_mysql修復它,但沒有奏效:

sudo apt-get install php5-gd php5-mysql 

如何更新我的作曲家?

[email protected]:~/NetBeansProjects/xxx$ php composer.phar update 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Generating autoload files 
> Incenteev\ParameterHandler\ScriptHandler::buildParameters 
Updating the "app/config/parameters.yml" file 
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap 
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache 


    [Doctrine\DBAL\Exception\DriverException]    
    An exception occured in driver: could not find driver 



    [Doctrine\DBAL\Driver\PDOException] 
    could not find driver     



    [PDOException]   
    could not find driver 


Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception 


    [RuntimeException]               
    An error occurred when executing the "'cache:clear --no-warmup'" command: 

    [Doctrine\DBAL\Exception\DriverException]         
    An exception occured in driver: could not find driver      


    [Doctrine\DBAL\Driver\PDOException]          
    could not find driver              


    [PDOException]               
    could not find driver              

    .                   


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... 
+0

'php -m'的輸出是什麼? – Federkun

+0

[PHP模塊] bcmath時 日曆 核心 CTYPE 日期 DBA DOM EXIF 的FileInfo 濾波器 FTP gettext的 散列 的iconv JSON 的libxml MBSTRING mysqlnd OpenSSL的 PCNTL PCRE PDO Phar posix readline 反射 會議 的SimpleXML 肥皂 插座 SPL 標準 sysvmsg SYSVSEM SYSVSHM 標記者 XML 的XMLReader 的XmlWriter 的Zend OPcache 拉鍊 zlib的 [Zend的模塊] Zend公司OPcache – Ginger

+0

我設法得到它與php5一起工作。但是,在php7中,pdo_mysql似乎不在模塊列表中。 – Ginger

回答

相關問題