Page 1 sur 1

Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 04 févr. 2021, 16:06
par Melodium
Bonjour,

J'essaye depuis un bon moment de faire une migration sous Mac de mon PHP (7.1.33) vers la version (8.0) mais malgré plusieurs tentatives par le terminal, rien ne change.

Code : Tout sélectionner

PS /Users/Melodium> php -v PHP 7.1.33 (cli) (built: Jan 18 2020 13:49:07) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

Code : Tout sélectionner

PS /Users/Melodium> curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 Detected macOS High Sierra 10.13. All ok. Get packager.tgz Unpack packager.tgz Please type in your password, as we want to install this into /usr/local Password: Start packager (may take some time) using /usr/bin/python2.7 downloading https://s3-eu-west-1.amazonaws.com/php-osx.liip.ch/install/7.3-10.10-frontenddev-latest.dat downloading https://s3-eu-west-1.amazonaws.com/php-osx.liip.ch/install/7.3-10.10/frontenddev/7.3-10.10-frontenddev-7.3.8-20190811-205217.tar.bz2 Installing package 7.3-10.10-frontenddev into root / Package 7.3-10.10-frontend dev is already installed at version 7.3.8-20190811-205217. You wanted to install version 7.3.8-20190811-205217. Finished. PS /Users/Melodium> php -v PHP 7.1.33 (cli) (built: Jan 18 2020 13:49:07) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies PS /Users/Melodium>
Aucun changement de PHP.

Pouvez-Vous m'aidé
Merci

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 04 févr. 2021, 23:31
par @rthur
Simplement en allant sur le site que tu appelles en ligne de commande : https://php-osx.liip.ch/ on voit que ça ne permet pas d'installer PHP 8.0.

La solution complexe, c'est de recompiler PHP, cf la doc : https://www.php.net/manual/fr/install.m ... ompile.php

Si tu aimes la ligne de commande, tu peux passer par le gestionnaire de paquets Homebrew :
https://brew.sh/index_fr
https://www.php.net/manual/fr/install.m ... ckages.php
et https://github.com/shivammathur/homebrew-php


Ou si tu veux une solution packagée/clé en main :
- MAMP : https://www.mamp.info/en/mamp/
- XAMPP : https://www.apachefriends.org/fr/index.html

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 05 févr. 2021, 01:10
par Melodium
Merci pour tes multiples réponses...

Pour Homebrew il met impossible de l'utiliser sous sierra.
Je vais essayer Xamp, c'est peut être le plus facile pour moi.

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 05 févr. 2021, 01:13
par Melodium

Code : Tout sélectionner

PS /Users/Melodium> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" PS /Users/Melodium> brew install wget Updating Homebrew... fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com Warning: You are using macOS 10.13. 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. Error: wget: no bottle available! You can try to install from source with: brew install --build-from-source wget Please note building from source is unsupported. You will encounter build failures with some formulae. If you experience any issues please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. PS /Users/Melodium>

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 05 févr. 2021, 09:24
par @rthur
Could not resolve host: github.com
Tu as un problème d'accès internet : firewall trop restrictif, problème DNS ou filtrage sur un réseau d'entreprise par exemple

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 06 févr. 2021, 14:39
par Melodium
Bonjour Arthur,

Pourrais tu m'aider , je n'arrive absolument pas à faire la mise à jour !

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 06 févr. 2021, 20:45
par @rthur
Malheureusement je ne suis pas utilisateur de Mac donc difficile pour moi de t'aider davantage.

Quand j'utilisais un Mac (il y a fort fort longtemps), j'avais utilisé MAMP et ça fonctionnait très bien d'où mon conseil précédent.

Re: Migration PHP 7.1.33 vers la version 8.0 (mac)

Posté : 12 févr. 2021, 13:14
par Melodium27

Code : Tout sélectionner

iMac-de-Pauchard:Projet-Music Melodium$ composer update The "symfony/flex" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php >=7.2.5 but your php version (7.1.33) does not satisfy that requirement. Problem 2 - symfony/console[v5.1.0, ..., v5.1.11] require php >=7.2.5 -> your php version (7.1.33) does not satisfy that requirement. - Root composer.json requires symfony/console 5.1.* -> satisfiable by symfony/console[v5.1.0, ..., v5.1.11]. iMac-de-Pauchard:Projet-Music Melodium$