3

Title says it all - can anyone walk me through setting this up on a mac? I ran the linux python install script but i'm guessing i'm missing a few dependencies as it failed on me.

edit: there are numerous errors, listed here:

Reading http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/
Download error on http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/: [Errno 61] Connection refused -- Some packages may not be found!
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/
Download error on http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/: [Errno 61] Connection refused -- Some packages may not be found!
Reading http://twistedmatrix.com/projects/core/
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/
Download error on http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/: [Errno 61] Connection refused -- Some packages may not be found!
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/
Download error on http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/: [Errno 61] Connection refused -- Some packages may not be found!

Running Twisted-12.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OQqo5N/Twisted-12.3.0/egg-dist-tmp-9vucfj
unable to execute llvm-gcc-4.2: No such file or directory
unable to execute llvm-gcc-4.2: No such file or directory
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
5
  • Knowing the error message would quite obviously be important to be able to help you...
    – o0'.
    Feb 20, 2013 at 0:06
  • good point. added to question.
    – Jay
    Feb 20, 2013 at 0:17
  • 2
    unable to execute llvm-gcc-4.2: No such file or directory seems to indicate that you do not have a compiler installed. Did you set up Xcode and install the command line tools, or install GCC through MacPorts or Homebrew?
    – Colin Dean
    Feb 20, 2013 at 2:04
  • 1
    Aah, I've been a fool, the command line tools have apparently been optional addons for Xcode since 4.2 so I assumed i had gcc but did not. Got them from xcode preferences/downloads. Thank you! Works fine now. Worryingly though, gcc will no longer be an option for future versions of Xcode (4.6 forwards)
    – Jay
    Feb 20, 2013 at 3:00
  • Any reason this has to be so difficult? Ah, to show that the devs are so much smarter than the rest of us!
    – zaph
    Feb 19, 2014 at 0:34

1 Answer 1

4

So, while Mac includes python it does not include gcc by default, even once you've installed Xcode 4.2 or later. For now, grab that, go to preferences, downloads and get the command line tools.

Once a version of Xcode higher than 4.6 is out you'll have to find a new way to install gcc on your mac, as gcc will no longer be included, but I guess that's a question for another stackexchange, and likely a macports or homebrew solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.