PHP7.3找不到curl
我正在macOS Big Sur(11.2.1)上使用PHP 7.3。PHP7.3找不到curl,php,macos,curl,Php,Macos,Curl,我正在macOS Big Sur(11.2.1)上使用PHP 7.3。 当输入php-version时,我收到以下错误消息: php --version 11:12:02 PHP Warni
当输入php-version时,我收到以下错误消息:
php --version 11:12:02
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
PHP 7.3.27 (cli) (built: Feb 4 2021 17:29:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.27, Copyright (c) 1999-2018, by Zend Technologies
如何修复错误?错误的原因是什么?
我的计算机出了问题。
当我键入php--ini时,我得到以下消息:
php --ini 11:33:04
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/etc/php/7.3
Loaded Configuration File: /usr/local/etc/php/7.3/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
卷曲扩展已丢失。当我查看php.ini时,扩展被激活。
除非有其他必要的步骤?
vi/usr/local/etc/php/7.3/php.ini 以下是输出:
⋊> ~ php --ini 11:33:04
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/pecl/20180731/curl (dlopen(/usr/local/lib/php/pecl/20180731/curl, 9): image not found), /usr/local/lib/php/pecl/20180731/curl.so (dlopen(/usr/local/lib/php/pecl/20180731/curl.so, 9): image not found)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/etc/php/7.3
Loaded Configuration File: /usr/local/etc/php/7.3/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
没有找到。可能没有安装curl。或者检查php.ini中的路径。