problème installation Php (terminal)

Jefekoi

Membre confirmé
1 Juin 2009
26
2
61
Bonjour à tous,
Je ne suis pas un expert au niveau du terminal,
J'ai voulu mettre à jour la version PHP mais j'ai un souci il m'affiche des erreurs

iMac-de-Eric:~ eric$ brew install php7.2
Warning: No available formula with the name "php7.2". Did you mean [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] or [email protected]?
==> Searching for similarly named formulae...
These similarly named formulae were found:
shivammathur/php/[email protected] shivammathur/php/[email protected] shivammathur/php/[email protected]
shivammathur/php/[email protected] shivammathur/php/[email protected] shivammathur/php/[email protected]
shivammathur/php/[email protected] shivammathur/php/[email protected]
To install one of them, run (for example):
brew install shivammathur/php/[email protected]
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
iMac-de-Eric:~ eric$

Pourriez vous m'aider à le mette à jour ?

iMac-de-Eric:~ eric$ php -v
PHP 7.1.33 (cli) (built: Jan 26 2020 22:52:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
iMac-de-Eric:~ eric$

Voici ma version MAC (pièce jointe)

Merci pour votre aide.
 

Fichiers joints

  • capture 2022-04-22 à 18.22.11.jpg
    capture 2022-04-22 à 18.22.11.jpg
    17,4 KB · Affichages: 56
Merci pour ta réponse mais il me fait quand même une erreur (j'ai essayé les deux versions que tu me donnes et le résultat est pareil)

iMac-de-Eric:XML-TV-Fr-master eric$ brew install [email protected]
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

Warning: shivammathur/php/[email protected] has been deprecated because it is deprecated upstream!
Warning: No available formula with the name "bison" (dependency of shivammathur/php/[email protected]).
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
iMac-de-Eric:XML-TV-Fr-master eric$
 
Dernière édition:
Merci, comme j'ai dit je ne suis pas un expert, j'ai aucune idée comment installer une version plus récente de php
 
Pourquoi vouloir absolument installer php 7.2 et pas 7.4, ou même php 8.1 ?
La version 7.2 est dépréciée depuis novembre 2020...