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

[Bug]: php.new install on x86 mac failing due to arm version of php being returned from x86 download link #1217

Open
JohnIrle opened this issue Dec 27, 2024 · 1 comment
Labels

Comments

@JohnIrle
Copy link

JohnIrle commented Dec 27, 2024

Platform

macOS

Operating system version

macOS Ventura 13.6.7

System architecture

Intel (x86)

Herd Version

1.13.0

PHP Version

8.4

Bug description

When trying to install herd and php via the php.new script, installation is failing due to the wrong version of php being installed. I commented out the arm check in the script to confirm and then followed the download link directly and found that it was also installing the arm version. The file returned from https://download.herdphp.com/herd-lite/macos/x64/8.4/php is arm64

Steps to reproduce

Run the php.new script from an x86 mac computer. Also download the file from https://download.herdphp.com/herd-lite/macos/x64/8.4/php and use the file command. You should see php: Mach-O 64-bit executable arm64

Relevant log output

file php
php: Mach-O 64-bit executable arm64

./php
zsh: bad CPU type in executable: ./php

/bin/bash -c "$(curl -fsSL https://php.new/install/mac)"
INFO  Downloading PHP binary…
INFO  Downloading Composer binary…
INFO  Downloading Laravel installer
INFO  Downloading cacert.pem…
INFO  /Users/john/.config/herd-lite/bin is already in your PATH.
/bin/bash: line 192: /Users/john/.config/herd-lite/bin/php: Bad CPU type in executable
@issuelabeler issuelabeler bot added the macOS label Dec 27, 2024
@JohnIrle JohnIrle changed the title [Bug]: php.new install on mac failing due to arm version of php being returned from x86 download link [Bug]: php.new install on x86 mac failing due to arm version of php being returned from x86 download link Jan 1, 2025
@adelmiljkovic
Copy link

Whats the simplest manual fix for this?

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