Unable to load dynamic library 'curl' #2529
Replies: 3 comments · 4 replies
-
What is the output of |
Beta Was this translation helpful? Give feedback.
All reactions
-
brew config : HOMEBREW_VERSION: 3.3.5 brew doctor : Please note that these warnings are just used to help the Homebrew maintainers Warning: Unbrewed header files were found in /usr/local/include. Unexpected header files: |
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm having the same issue, do you have any suggestion to fix the issue? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I removed folder usr/local/etc/php and re-installed php via brew and now all works fine |
Beta Was this translation helpful? Give feedback.
All reactions
-
Homebrew's PHP has Curl built-in rather than a separate extension. You shouldn't need to use |
Beta Was this translation helpful? Give feedback.
All reactions
-
I see. Just to confirm I don't need to enable these extensions in php.ini since I am using brew install shivammathur/php/[email protected]? extension=curl |
Beta Was this translation helpful? Give feedback.
All reactions
-
We don't maintain |
Beta Was this translation helpful? Give feedback.
-
Hi, trying to use curl extension (extension=curl in php.ini) and here is the error :
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /opt/homebrew/lib/php/pecl/20200930/curl (dlopen(/opt/homebrew/lib/php/pecl/20200930/curl, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20200930/curl' (no such file), '/usr/local/lib/curl' (no such file), '/usr/lib/curl' (no such file)), /opt/homebrew/lib/php/pecl/20200930/curl.so (dlopen(/opt/homebrew/lib/php/pecl/20200930/curl.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20200930/curl.so' (no such file), '/usr/local/lib/curl.so' (no such file), '/usr/lib/curl.so' (no such file))) in Unknown on line 0
Its looking in :
extension_dir = "/opt/homebrew/lib/php/pecl/20200930"
which is empty. I tried to change it but no success.
php was installed with brew and its last version and updated
Thank you for your help and sorry for my english
Beta Was this translation helpful? Give feedback.
All reactions