2016-06-12 56 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

回答

相关问题