osx - Build and install Brew apps that are x86_64 instead of i386? -


after have done this:

brew install git

i this:

which git

which returns:

/usr/local/bin/git

i this:

file /usr/local/bin/git

which returns:

/usr/local/bin/git: mach-o executable i386

i need brew install x86_64.

how can force brew build , install apps x86_64?

brew --config

returns this:

homebrew_version: 0.9 head: 1c64a6624ed83ef17af6e98638b8165400e9e908 homebrew_prefix: /usr/local homebrew_cellar: /usr/local/cellar cpu: quad-core 64-bit sandybridge os x: 10.7.4 kernel architecture: x86_64 xcode: 4.3.2 gcc-4.0: n/a gcc-4.2: n/a llvm: build 2336 clang: 3.1 build 318 macports or fink? false x11: /usr/x11 system ruby: 1.8.7-357 perl:   /usr/bin/perl python: /usr/bin/python ruby:   /users/tdewell/.rvm/rubies/ruby-1.9.3-p194/bin/ruby 

update: adding brew --env

$ brew --env cc: /usr/bin/xcrun gcc-4.2 => /developer/usr/bin/gcc-4.2  cxx: /usr/bin/xcrun g++-4.2 => /developer/usr/bin/g++-4.2  ld: /usr/bin/xcrun gcc-4.2 => /developer/usr/bin/gcc-4.2  cflags: -os -w -pipe -march=core2 -msse4 cxxflags: -os -w -pipe -march=core2 -msse4 makeflags: -j4 

this has been solved.

i installed xcode 4.3.2 via app store , installed command line tools, had existing xcode 3.1 installed years ago. googled around , found these commands:

sudo /developer/library/uninstall-devtools –mode=all  sudo xcode-select -switch /applications/xcode.app/contents/developer 

that cured problem , after did compilers changed brew:

$ brew --env cc: /usr/bin/clang cxx: /usr/bin/clang++ => /usr/bin/clang ld: /usr/bin/clang cflags: -os -w -pipe -march=native -qunused-arguments cxxflags: -os -w -pipe -march=native -qunused-arguments makeflags: -j4 

brew installs better now:

$ git /usr/local/bin/git  $ file /usr/local/bin/git /usr/local/bin/git: mach-o 64-bit executable x86_64 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -