(guide) How to compile with homebrew in AMD
I was having this problem, without this workaroung it is very likely that you (AMD user) won't be able to compile anything with homebrew. The thing that need to be done is: Open /usr/local/Library/homebrew/extend/ENV.rb and search for the…
- Primary Author
- @ghostec Published 2012-05-30
- Collection
- Snow Leopard 10.6
- Archival Footprint
- 4,731 historical reads · 1 curated field notes (from 2 dispatches) · 2012-05-30
- Credited Voices (1)
- @ghostec (2)
- Hardware Reference
- AMD Desktop Processors ↗ SATA III & NVMe SSDs ↗ USB 3.2 Boot Flash Drives ↗
I was having this problem, without this workaroung it is very likely that you (AMD user) won't be able to compile anything with homebrew.
The thing that need to be done is:
Open /usr/local/Library/homebrew/extend/ENV.rb and search for the lines starting with set_cpu_cflags then comment with a # before or change the entire line to set_cpu_cflags "arch -i386"
This way it won't be needed to edit formula by formula of the programs you want to compile and you will be able to use homebrew.
Synthesized Community Field Notes
1 technical responses curated from 2 original dispatches
I did a fork in homebrew (github) to help ones wanting to use it oob: https://github.com/ghostec/homebrew/tree/homebrew4amd ↗
Sources & Contributor Provenance (1 credited usernames · Thread #7698)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @ghostec | Primary Author | 2 | 2012-05-30 |