title: Numpy Install RuntimeError: Broken toolchain: cannot link a simple C program
body: <p>(macbook air)</p>
  
  <p>I spent a while trying to install this. First off, I can't use Homebrew because I installed it but then the 'network connection' dropped and now my computer can't find the 'brew' command, but it says homebrew  in installed. So I don't know how to uninstall it without using the brew command. </p>
  
  <p>So I am trying to install numpy from the command line. I have xcode, command line tools, gcc fortran 4.2.3, and downloaded numpy. I am getting a RuntimeError when trying to install it! I've read and tried everything from previous posts. </p>
  
  <p>I have attached my Path to show you all, maybe I messed that up? </p>
  
  <pre><code> echo $PATH
  /Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/3.4 bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  </code></pre>
  
  <p>Would love your help!!</p>
  
  <pre><code>Traceback (most recent call last):
    File "setup.py", line 251, in &lt;module&gt;
      setup_package()
    File "setup.py", line 243, in setup_package
      setup(**metadata)
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/core.py", line 169, in setup
      return old_setup(**new_attr)
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
      dist.run_commands()
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
      self.run_command(cmd)
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
      cmd_obj.run()
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/command/build.py", line 39, in run
      old_build.run(self)
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py", line 134, in run
      self.run_command(cmd_name)
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 333, in run_command
      self.distribution.run_command(command)
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
      cmd_obj.run()
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/command/build_src.py", line 153, in run
      self.build_sources()
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/command/build_src.py", line 164, in build_sources
      self.build_library_sources(*libname_info)
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/command/build_src.py", line 299, in build_library_sources
      sources = self.generate_sources(sources, (lib_name, build_info))
    File "/Users/Anisa/Downloads/numpy-1.9.1/numpy/distutils/command/build_src.py", line 386, in generate_sources
      source = func(extension, build_dir)
    File "numpy/core/setup.py", line 686, in get_mathlib_info
      raise RuntimeError("Broken toolchain: cannot link a simple C program")
  RuntimeError: Broken toolchain: cannot link a simple C program
  </code></pre>