title: gcc failed with exit status 1 when installing libmemcached
body: <p>While trying to follow the python-libmemcached instructions at <a href="http://code.google.com/p/python-libmemcached/" rel="nofollow">http://code.google.com/p/python-libmemcached/</a> I run into trouble at step 3 ("python setup.py install")</p>
  
  <pre><code>    (gigmash_venv)m:python-libmemcached matthewparrilla$ python setup.py build
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.3-fat-2.7
      copying cmemcached.py -&gt; build/lib.macosx-10.3-fat-2.7
      running build_ext
      building 'cmemcached_imp' extension
      creating build/temp.macosx-10.3-fat-2.7
      gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cmemcached_imp.c -o build/temp.macosx-10.3-fat-2.7/cmemcached_imp.o
      powerpc-apple-darwin9-gcc-4.0.1: cmemcached_imp.c: No such file or directory
      powerpc-apple-darwin9-gcc-4.0.1: no input files
      i686-apple-darwin9-gcc-4.0.1: cmemcached_imp.c: No such file or directory
      i686-apple-darwin9-gcc-4.0.1: no input files
      lipo: can't figure out the architecture type of: /var/folders/0o/0oHT3RmJF80rpIJtdbegzE+++TI/-Tmp-//cc9xQqQ6.out
      error: command 'gcc-4.0' failed with exit status 1
  </code></pre>
  
  <p>I have next to no idea what this means or what to do. I do have multiple versions of gcc on my comp (4.0 and 4.2) and have gleaned enough from googling it that that might matter. Totally lost otherwise.</p>
  
  <p>Thanks in advance.</p>
  
  <p>[Edit: After following @phihag's instructions]</p>
  
  <p>I'm now receiving an altogether different though still confusing error:</p>
  
  <pre><code>    (gigmash_venv)m:python-libmemcached matthewparrilla$ python setup.py build
      running build
      running build_py
      running build_ext
      building 'cmemcached_imp' extension
      gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cmemcached_imp.c -o build/temp.macosx-10.3-fat-2.7/cmemcached_imp.o
      cmemcached_imp.c:237:36:cmemcached_imp.c:237:36: error:  error: libmemcached/memcached.h: No such file or directory
      libmemcached/memcached.h: No such file or directory
      In file included from cmemcached_imp.c:238:
      split_mc.h:14: warning: ‘struct memcached_st’ declared inside parameter list
      split_mc.h:14: warning: its scope is only this definition or declaration, which is probably not what you want
      split_mc.h:17: warning: ‘struct memcached_st’ declared inside parameter list
      In file included from cmemcached_imp.c:238:
      split_mc.h:14: warning: ‘struct memcached_st’ declared inside parameter list
      (and this goes on for many many more lines)...
  </code></pre>