我在stackoverflow上查看了有关此问题的多篇帖子,但我仍然遇到同样的问题:
php.ini文件中列出了以下内容:
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
ENV文件:
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_DATABASE=owe
DB_USERNAME=postgres
DB_PASSWORD=password
我重新启动apache,重新启动计算机,当我进行迁移时,我收到以下错误:
me$ php artisan migrate
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/php_pdo_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/php_pdo_pgsql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/php_pgsql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/php_pgsql.dll, 9): image not found in Unknown on line 0
[PDOException]
could not find driver
答案 0 :(得分:5)
这对我有用:
brew install php55-pdo-pgsql
谢谢,