Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Choose the 32 or 64 bit version of an app from command line

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.

like image 481
moala Avatar asked Jan 06 '12 09:01

moala


1 Answers

Instead of:

$ executable_file

enter either:

$ arch -i386 executable_file

or:

$ arch -x86_64 executable_file
like image 71
Ned Deily Avatar answered Sep 30 '22 06:09

Ned Deily