How to install PHP 7.4 on Apple M1?
Asked Answered
H

1

7

I have a Apple M1 arm64

I tried to install PHP 7.4 via brew

brew install [email protected]                                                                                                                             ✔  19:28:52 
Error: [email protected] has been disabled because it is a versioned formula!

Then i tried with valet

valet use [email protected]                                                                                                                           ✔  4s  19:28:30 
Installing [email protected]...
==> Tapping shivammathur/php
Cloning into '/opt/homebrew/Library/Taps/shivammathur/homebrew-php'...
remote: Enumerating objects: 16343, done.
remote: Counting objects: 100% (677/677), done.
remote: Compressing objects: 100% (155/155), done.
remote: Total 16343 (delta 553), reused 636 (delta 520), pack-reused 15666
Receiving objects: 100% (16343/16343), 2.29 MiB | 6.15 MiB/s, done.
Resolving deltas: 100% (12887/12887), done.
Tapped 20 formulae (73 files, 3.1MB).
[[email protected]] is not installed, installing it now via Brew... 🍻
Error: [email protected] has been disabled because it is a versioned formula!


In Brew.php line 168:
                                         
  Brew was unable to install [[email protected]].  

Any ideas?

Hadlee answered 1/2, 2023 at 18:31 Comment(1)
Does this answer your question? Error: [email protected] has been disabled because it is a versioned formulaLammas
H
15

This worked for me:

brew install shivammathur/php/[email protected]
Hadlee answered 1/2, 2023 at 19:6 Comment(1)
I get an error doing exactly that -> Error: [email protected]: Failed to download resource "freetds" Download failed: Homebrew-installed curl is not installed for: freetds.org/files/stable/freetds-1.4.10.tar.bz2Luminescent

© 2022 - 2024 — McMap. All rights reserved.