title: checking whether the C compiler works... no when installing python 2.6 (mac os x lion)
body: <p>I'm trying to install python 2.6 using <code>pyenv</code> but when doing <code>pyenv install 2.6.9</code>I get the following:</p>
  
  <pre>
  checking MACHDEP... darwin
  checking EXTRAPLATDIR... $(PLATMACDIRS)
  checking machine type as reported by uname -m... x86_64
  checking for --without-gcc... no
  checking for gcc... gcc
  checking whether the C compiler works... no
  configure: error: in `/var/folders/r9/771hsm9931sd81ppz31384p80000gn/T/python-build.20150213191018.2121/Python-2.6.9':
  configure: error: C compiler cannot create executables
  </pre>
  
  <p>I've installed Xcode 4.6.3 and installed Command Line Tools as info.</p>
  
  <p>Cheers,</p>
  
  <p>Ch</p>