PHP警告:无法加载动态库php_pdo_sqlite.dll和php_sqlite3.dll

时间:2019-05-25 18:11:21

标签: php php-7.1

在Mac上使用php 7.1已有一段时间,尝试安装作曲器后,出现以下错误:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll in Unknown on line 0

/ usr / lib / php / extensions / no-debug-non-zts-20160303目录中只有两个文件: -opache.so -xdebug.so

我发现了几个与此相关的线程,并且在检查了php ini并运行phpinfo()之后找不到解决该问题的方法。

尝试运行

php -i | grep ini

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
Supported handlers => ndbm cdb cdb_make inifile flatfile 
init_command_executed_count => 0
init_command_failed_count => 0
com_init_db => 0
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
open sourced by => Epinions.com

[编辑]

在ini文件中,所有对DLL文件的引用均被注释掉,所有对sqlite的引用均被注释掉。

有人可以向我提供更多有关如何解决此问题的信息吗?

我正在使用PHP 7.1,并在Mac和Mojave上使用

0 个答案:

没有答案