Bonjour,
J'ai suivi ce tuto pour installer PHP 8 https://stitcher.io/blog/php-8-upgrade-mac mais je n'y parviens pas :
Lors de la commande brew install shivammathur/php/php@8.0 :
➜ ~ brew install shivammathur/php/php@8.0
==> Installing php from shivammathur/php
==> Downloading https://dl.bintray.com/shivammathur/php/php-8.0.2.big_sur.bottle.tar.gz
Already downloaded: /Users/X/Library/Caches/Homebrew/downloads/ca2fec76e9dd97846d4bd00ae28d1567d4183813b184172f3fa17c4ed33e2b41--php-8.0.2.big_sur.bottle.tar.gz
==> Pouring php-8.0.2.big_sur.bottle.tar.gz
==> /usr/local/Cellar/php/8.0.2/bin/pear config-set php_ini /usr/local/etc/php/8.0/php.ini system
Last 15 lines from /Users/X/Library/Logs/Homebrew/php/post_install.01.pear:
2021-02-10 21:45:24 +0100
/usr/local/Cellar/php/8.0.2/bin/pear
config-set
php_ini
/usr/local/etc/php/8.0/php.ini
system
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuio.67.dylib
Referenced from: /usr/local/Cellar/php/8.0.2/bin/php
Reason: image not found
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall shivammathur/php/php
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/8.0/
To have launchd start shivammathur/php/php now and restart at login:
brew services start shivammathur/php/php
Or, if you don't want/need a background service you can just run:
php-fpm
==> Summary
🍺 /usr/local/Cellar/php/8.0.2: 500 files, 77.8MB
Je me prends plein d'erreur, j'ai essayé tout ce qui était conseillé, en vain
Pouvez-vous m'aider svp ?