Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to build h5py on OS X Lion; I'm using Python 2.7.2 installed from Scipy Superpack. Using either pip and approach, I get the same error:

lipo: can't figure out the architecture type of: /blah/blah
error: command 'gcc-4.2' failed with exit status 1

This is my gcc version which I had to link with sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 

Is it because of 32/64-bit compatibility? Is there a way around this?

share|improve this question
What is /blah/blah? – slhck Jun 21 '12 at 7:46
Some temporary directory that seems to change every time. like /var/ and then what appears to be a random sequence of characters/numbers. – crippledlambda Jun 21 '12 at 12:37
Did you solve this out? My guess is that Scipy Superpack (whatever it is) is not compiled to be compatible with GCC shipped with Lion. – Mikko Ohtamaa Jul 9 '12 at 8:04
I'm using gcc from XCode or Macports, but I thought it was the same that was used to build Scipy Superpack. In the end, I just installed EPD. – crippledlambda Jul 20 '12 at 3:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.