5

I'm on Mac OS X, and I have an executable binary which is compatible with the x86_64 and i386 architectures.

From the command-line, I would like to choose which of these architectures has to be launched.

How to do that? Thanks.

jww
  • 97,681
  • 90
  • 411
  • 885
moala
  • 5,094
  • 9
  • 45
  • 66

1 Answers1

7

Instead of:

$ executable_file

enter either:

$ arch -i386 executable_file

or:

$ arch -x86_64 executable_file
Ned Deily
  • 83,389
  • 16
  • 128
  • 151