I am trying to insall php with homebrew, but after downloading some files the installation returns the error:
Error: No such file or directory @ rb_sysopen - /Users/javier/Library/Caches/Homebrew/downloads/784f6ce1c9212ab1acb859b2b1900ce46010c258b0c33be68c5e2f784fc7a1dc--brotli--1.1.0.arm64_ventura.bottle.1.tar.gz
I have a MacBook Pro with the M1 Pro chip.
I am trying to install it with brew install php
. brew doctor
returns ready to brew with no errors. Tried uninstalling but there is no keg Error: No such keg: /opt/homebrew/Cellar/php
.
Edit: Looks like I was having a problem updating my homebrew. Previously, when I tried brew update
, it said that my homebrew was up to date. Today, the I tried updating it another time and then brew upgrade
, tested brew install php
and it worked.
2
Answers
Worked wonders with
brew upgrade
and thenbrew install php
.I have the same issue and I install
brotli
first. Write:brew install brotli
Then it works for php installation.