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>]...
какой выход 'php -m'? – Federkun
[РНР модули] BCMath календарь Ядро CType Дата дБА дом EXIF FileInfo фильтра FTP Gettext хэш Iconv JSON LibXML MBstring mysqlnd Openssl pcntl PCRE ПДО Phar posix readline Отражение сессия SimpleXML мыло розетки SPL стандарт sysvmsg sysvsem sysvshm токенизатор XML XMLReader XmlWriter Зенд OPcache почтовый Zlib [Zend Modules] Zend OPcache – Ginger
мне удалось получить он работает с php5. Однако, в php7, pdo_mysql, похоже, не входит в список модулей. – Ginger