skip to Main Content

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


  1. Chosen as BEST ANSWER

    Worked wonders with brew upgrade and then brew install php.


  2. I have the same issue and I install brotli first. Write:

    brew install brotli

    Then it works for php installation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search