Get the slush stratum proxy working on a mac

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

John

Posted 2013-02-19T22:24:50.287

Reputation: 704

Knowing the error message would quite obviously be important to be able to help you...o0'. 2013-02-20T00:06:25.140

good point. added to question.John 2013-02-20T00:17:37.763

2unable 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 2013-02-20T02:04:51.267

1Aah, 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)John 2013-02-20T03:00:36.780

Any reason this has to be so difficult? Ah, to show that the devs are so much smarter than the rest of us!zaph 2014-02-19T00:34:31.873

Answers

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.

John

Posted 2013-02-19T22:24:50.287

Reputation: 704