<\/span><\/p>\n The information below is now out of date.<\/p><\/div>\n One of the latest and greatest BitCoin miners out there these days is CGMiner<\/a>. It is an advanced and adaptive GPU, FPGA and ASIC miner incorporating all the major BitCoin mining kernels out there (diablo, poclbm, phatk and diakgcn) and has key features such as long-polling, multiple pools, etc.<\/p>\n CGMiner in Mac OS X 10.8.3 Terminal<\/p><\/div>\n There are a few options to get this running on a Mac. Until recently, your only option was to download the source code and compile it via Terminal, which I’ve detailed below. In the last couple of days, a few additional options have sprung up. Nate Woolls has built a Homebrew installation<\/a> that is very simple once you have homebrew installed, but isn’t (yet) part of the official homebrew packages yet. And BitBacco is working on a Mac installer package called MacMiner<\/a> currently in beta, and he’s looking for testers. And if you want to get set up mining now<\/i> with as little hassle as possible (but at a slower hash rate), check out BitMinter<\/a>.<\/p>\n Still want to build it yourself from the latest source code? Here’s what you need to do. I promise it’s not too tough.<\/p>\n If you followed my previous guide and you have MacPorts installed, you can remove MacPorts by following the quick instructions here<\/a>.<\/span> Update (2013.04.08):<\/b> ADL is not supported on the Mac, and is unlikely to be anytime soon in a form that the developers of cgminer would be likely interested in developing for. Therefore, you can live life without ADL (GPU overclocking, temp\/fan management, etc) or try downloading a windows version and running it via Boot Camp<\/a>.<\/p>\n Update (2013.04.09):<\/b> Changed some formatting in the post for easier copy\/paste.<\/p>\n Update (2013.04.25):<\/b> Switched from MacPorts to Homebrew, and updated guide for cgminer 3.0.1 (previously 2.11.4).<\/p>\n Update (2013.04.29):<\/b> Updated for cgminer 3.1.0. Added links to other good projects to bring cgminer and bfgminer to mac.<\/p>\n
There are now much better options for running cgminer on a Mac than compiling it yourself. Take a look at Asteroid<\/a>, an easy-to-use front-end to cgminer and super Mac-friendly. Or if you still like the command line, I’ve also released universal binaries precompiled and ready to run at spaceman.ca\/cgminer<\/a>.<\/p>\n<\/a>
\n
This is the IDE for programming on the Mac. Don’t worry, we just need some of the tools that it installs, you won’t actually be working in Xcode. Next:\n\n
<\/li>\n<\/ul>\n<\/li>\n
Download the latest version with “tar.bz2” as the file suffix (not x86_64). Unzip this file wherever you like, and remember the location for when we compile cgminer later on.
<\/li>\n
Homebrew provides access to lots of little utilities used by command-line apps. We’ll only install the ones we absolutely need for CGMiner.\n
<\/li>\n
Enter the following to install the Homebrew packages we’ll need for compiling CGMiner (otherwise known as cgminer’s dependencies<\/i>):\n\n
brew doctor<\/code>
Checks to see that Homebrew is ready to work and there are no issues. If it returns some warnings, read the text and do what it says to fix it.<\/li>\nbrew install coreutils autoconf automake jansson libgcrypt libgpg-error libtool libusb pkg-config yasm curl<\/code>
Paste all on one line. This downloads, compiles and installs each of the dependencies needed for cgminer in one fell swoop.<\/li>\n<\/ul>\n<\/li>\n
Enter the following into your terminal, and customize it if you’d like. Each command should be entered on a single line.\n\n
cd <\/code>(drag and drop the cgminer folder onto the Terminal window)<\/li>\n
.\/configure --enable-scrypt PKG_CONFIG_PATH=\/usr\/local\/opt\/curl\/lib\/pkgconfig CFLAGS=\"-g -O2 -Wall\"<\/code><\/li>\n
sudo make install<\/code>
<\/li>\n<\/ul>\n<\/li>\ncgminer<\/code>” into your Terminal to run it. For a list of command-line options to include (including attaching to a mining pool), see the original documentation for CGMiner<\/a>. For example, use
cgminer -o http:\/\/pool:port -u username -p password<\/code> with your own values to attach to a pool<\/li>\n<\/ol>\n