Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Snow Leopard 10.6 › (guide) How to compile with homebrew in AMD
4,731 reads · 2012-05-30
Guide Snow Leopard 10.6 AMD OSx86

(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 · 0 curated field notes (from 2 dispatches) · 2012-05-30
Credited Voices (1)
@ghostec (2)

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.

Author Updates & Technical Revisions

Follow-up dispatches by @ghostec

Sources & Contributor Provenance (1 credited usernames · Thread #7698)
UsernameDossier ContributionDispatchesActive Window
@ghostecPrimary Author22012-05-30