Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.2 not installing #756

Closed
pildit opened this issue Jan 20, 2022 Discussed in #400 · 4 comments
Closed

PHP 7.2 not installing #756

pildit opened this issue Jan 20, 2022 Discussed in #400 · 4 comments
Labels

Comments

@pildit
Copy link

pildit commented Jan 20, 2022

Discussed in #400

i tried brew reinstall shivammathur/php/php@7.2 && brew link --overwrite --force php@7.2

This is the output

==> Reinstalling shivammathur/php/php@7.2 
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 11.3.1.

==> Installing dependencies for shivammathur/php/php@7.2: bison and re2c
==> Installing shivammathur/php/php@7.2 dependency: bison
==> Pouring bison--3.8.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/bison/3.8.2: 99 files, 3.6MB
==> Installing shivammathur/php/php@7.2 dependency: re2c
==> Pouring re2c--2.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/re2c/2.2: 10 files, 1.5MB
==> Installing shivammathur/php/php@7.2
==> Patching
==> ./buildconf --force
==> ./configure --prefix=/usr/local/Cellar/php@7.2/7.2.34_4 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7.2 --with-config-file-path=/usr/local/etc/php/7.2 --with-config
==> make
==> make install
Error: Formulae found in multiple taps: 
       * shivammathur/php/php@5.6
       * exolnet/deprecated/php@5.6


@shivammathur
Copy link
Owner

Please update your Xcode

  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Then as exolnet/deprecated tap is no longer maintained, you can remove it to avoid the formulae found in multiple taps error.

HOMEBREW_DEVELOPER=1 brew untap exolnet/deprecated

Next, run brew update and then try installing PHP 7.2 again.

@pildit
Copy link
Author

pildit commented Jan 20, 2022

Error: File exists @ dir_s_mkdir - /usr/local/Cellar/php@7.2/7.2.34_4/.brew

@shivammathur
Copy link
Owner

Remove all PHP 7.2 files and try again

sudo rm -rf /usr/local/Cellar/php@7.2

@pildit
Copy link
Author

pildit commented Jan 20, 2022

Thanks man. Great help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants