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

./install-common.sh: line 20: ./serial-macos-latest/serial: Bad CPU type in executable #124

Open
steve5054 opened this issue Mar 8, 2025 · 1 comment

Comments

@steve5054
Copy link

Running ./install-mac.sh on a 2019 Macbook Pro (2.6 GHz 6-Core Intel Core i7) I get the following error:

% ./install-mac.sh
Using adb at ./platform-tools/adb
Force a switch into the debug mode to enable ADB
./install-common.sh: line 20: ./serial-macos-latest/serial: Bad CPU type in executable

@rbomze
Copy link

rbomze commented Mar 9, 2025

The tool 'serial-macos-latest' in the release.tar is a binary compiled for 'apple silicon' / arm.
To compile it yourself for your x86/amd64 macbook :

> git clone https://github.com/EFForg/rayhunter
> cd rayhunter/serial
> cargo build --release
> cp ../target/release/serial /location/of/your/releasebinaries/serial-macos-latest/serial

Effectively replacing the 'wrong' binary.
Of course you could compile the whole rayhunter project yourself, but this requires gcc installed and other dependencies.

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

No branches or pull requests

2 participants