Litecoin Mining on Mac OS X – CPU Mining

Litecoin Logo

My previous series of articles on crypto-currency covered Bitcoin mining on OS X. This series will focus on mining Litecoins. While Bitcoin has been getting the lion’s share of media attention lately with its recent bubbles and crashes and growing adoption, Litecoin has been slowly growing in popularity among alternative crypto-currencies (known as altcoins).

What is Litecoin you may ask? Litecoin is a fork of the Bitcoin project with three important changes:

  1. The hashing algorithm uses is Scrypt rather than SHA-256
  2. Blocks are approved four times faster than Bitcoin blocks
  3. Litecoin is setup to produce 84 million Litecoins, versus Bitcoin’s 21 million target

Proponents of Litecoin argue that Litecoin should be regarded as silver to Bitcoin’s gold: easier and faster to transact smaller amounts. Proponents also argue that, by basing the proof-of-work on Scrypt rather than SHA-256, Litecoin mining will remain in the realm of consumer hardware, rather than limited to mining-specific hardware (like Bitcoin with FPGA’s and ASIC’s). While SHA-256 benefits from massive, parallel processing, Scrypt is built to be very memory-intensive. This means that, for the time being, mining Litecoins using your CPU (which is no longer profitable with Bitcoin) is still possible. You can also use your GPU to mine Litecoins, which gives me a 5x performance boost over CPU mining.

One popular setup seems to be using your GPU’s to mine Bitcoins and use spare CPU power to mine Litecoins. This article will cover how you can use Mac OS X to mine Litecoins using your CPU. If you’re interested in harnessing your GPU’s power to mine Litecoins rather than Bitcoins, a future article will cover that topic.

CPU Mining

To get started with Litecoin mining on OS X, download the official Litecoin wallet application – Litecoin-QT – from the Litecoin website. With the Litecoin wallet you can actually mine from within the UI. Download the DMG file and drag the Litecoin-QT app to your Applications folder.

Litecoin QT DMG

Now, I didn’t cover wallet setup in my Bitcoin series as it was outside the scope of mining. However, as Litecoin CPU mining is generally done within the wallet application (though it can be done at the command-line), I want to make two things clear. First, encrypt your wallet. Second, double-check that the encryption phrase you’ve recorded is correct and works before you start making deposits. The same thing goes for your Bitcoin wallet.

As stated above, the Litecoin wallet UI is capable of showing and controlling mining. While the Litecoin wallet has built in support for solo mining, pooled mining requires another download (see my first article for a brief overview of mining pools). The download is from a project called cpuminer. The cpuminer project was originally a CPU miner for both Bitcoin and then for Litecoin, when CPU mining for Bitcoin was still sensible. These days it’s been replaced in the Bitcoin world by cgminer and bfgminer, and is used in the Litecoin world for CPU mining. You can download the OS X binary for this cpuminer fork directly from the project’s GitHub downloads (32-bit, 64-bit).

Once you’ve downloaded and extracted the cpuminer binary, called minerd, place it alongside the Litecoin-QT app in your Applications folder. This makes it possible to use the pooled miner from within the Litecoin wallet.

UPDATE: The Mining tab has been removed from the Lightcoin-QT wallet. Skip down a couple of paragraphs for details on mining from the command-line.

Now you’re ready to start mining. Switch to the Mining tab in Litecoin-QT. Change the Type to Pool Mining. Set the Threads value to the number of cores you have (double that if you have Hyper-threading). You can leave the Scantime value. It is only used if the mining pool doesn’t support long-polling, which is rarely the case these days. For the Server, Port, Username and Password, enter your mining pool information. Using P2Pool mining pools is fairly popular with Litecoin. You can use or any number of alternatives.

Once you’ve got your mining pool information filled in, click Start Mining to get started.

Litecoin QT Mining

The Litecoin-QT UI will display the output from minerd and a running total of accepted and rejected shares, as well as average hashes-per-second.

Command-Line Mining

Now, if you’re the kind of gal (or guy) who prefers to do your work at the command-line, it’s not required that you use the Litecoin wallet app. While mining from within the app is nice as it gives you running totals, you can just as easily mine from the command-line with the following command:

./minerd -o http://host:port -u username -p password -t thread-count

Command Line LTC Mining

What’s Next?

In the follow-up to this article I’ll discuss the utilities, steps, and tweaks necessary to mine Litecoins on OS X using your GPU. While this doesn’t give the same magnitude of increased performance found when mining Bitcoins on the GPU versus CPU, the increase is still enough to make GPU’s the preferred way of Litecoin mining. However, that also means dedicating GPU cycles to Litecoins rather than Bitcoins, which is a decision you’ll have to make. Litecoins aren’t nearly as established as Bitcoins, so they could be poised to gain in value like Bitcoin has. At the time of this post they trade at around $4 versus Bitcoin hovering around $125). Others call into question Litecoin’s benefits over Bitcoin, seeing it as a doomed clone.

Only time will tell.

UPDATE: If you need to connect the CPU miner to a pool that doesn’t support Getwork, have a look at this post for a solution.

35 thoughts on “Litecoin Mining on Mac OS X – CPU Mining

  1. Pingback: Bitcoin Mining on Mac OS X – BitMinter |

  2. Pingback: Litecoin Mining on Mac OS X – GPU Mining |

  3. Rich Evers (@whatevers)

    On three different machines, I’m running into the same problem with minerd. The Litecoin-QT app simply reports “Miner exited” right after starting mining. The command line gives me a bit more info:
    dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
    Referenced from: /Applications/./minerd
    Reason: image not found
    Trace/BPT trap: 5
    All of the machines are successfully running cgminer from your earlier posts. Any ideas on what might be going wrong?

    1. nwoolls

      You could try using Homebrew to install libidn if you do not have it. The command “brew install libidn” should install it.

      Had you had MacPorts installed at any point? There’s a post here that indicates it may be a conflict between the curl installed from Homebrew and a previous installation from MacPorts.

      1. Rich Evers (@whatevers)

        That post sent me in the right direction – thanks! I’m working with pristine OS X installs, so MacPorts hadn’t been used before. Turns out I was missing both libidn and openssl. It’s not very elegant, but this is what got me up and running:

        brew install openssl
        brew install libidn
        sudo mkdir -p /opt/local/lib
        sudo ln -s /usr/local/Cellar/openssl/1.0.1e/lib/libssl.1.0.0.dylib /opt/local/lib/libssl.1.0.0.dylib
        sudo ln -s /usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib /opt/local/lib/libcrypto.1.0.0.dylib

  4. Mitch

    I’m just getting no where with setting up my iMac for litecoin mining. I’ve got an older iMac 3.06 GHz Core 2 Duo with OS X 10.6.8, so I can’t install Xcode without updating the OS which I don’t want to do. I’ve downloaded cpuminer, extracted the file and placed the “Exec Minerd” file into my applications folder with Litecoin QT app. Everyone else says you need to open Terminal and type in all of these commands and I have tried that and can’t figure it out. I’ve registered to get a “pooler” account, but I’m not even sure if I’m entering that correctly. I have one with This is so frustrating!
    I’m willing to pay you for assistance if you’d like to email me.


    1. Jay

      I’m new to Litecoin mining as well, but this appears to have me gotten up and running. (I’m slightly rephrasing what Nathaniel and RIch have said.)

      1) Get the Mac OS X litecoin app from
      2) Drag it into your Applications folder; I placed mine in /Users//Applications to keep it out of the main directory of my Mac
      3) Download the cpuminer app that Nathaniel linked to from Github and place the minderd file in the SAME FOLDER as Litecoin
      4) The minerd app from Github looks for certain libraries that aren’t present by default in Mac OS X, so you can use Homebrew to install them. You can get Homebrew from or use this command in the Terminal to download and install Homebrew:

      ruby -e “$(curl -fsSL”

      5) Now you can use Homebrew to install the needed libraries, openssl and libidn; wait for the first command to finish before entering the second:

      brew install openssl
      brew install libidn

      6) Once those packages are installed, you need to put them in a location where minerd can find them. The easiest way to do this is create symlinks (aliases) that point to the copies that Homebrew created. These commands in the Terminal create the needed folders and create the symlinks:

      sudo mkdir -p /opt/local/lib
      sudo ln -s /usr/local/Cellar/openssl/1.0.1e/lib/libssl.1.0.0.dylib /opt/local/lib/libssl.1.0.0.dylib
      sudo ln -s /usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib /opt/local/lib/libcrypto.1.0.0.dylib

      1. Mitch

        Hi Jay,
        I really appreciate you trying to assist me. I promise I’m not a complete computer idiot, it’s just that I have never worked with the command/terminal portion. As an example, I copied your link for the terminal to get Homebrew and pasted it into the terminal, hit enter…..nothing.

        I’ve been going through all of this stuff for days reading and trying things and realized that I had already downloaded “Homebrew”. It has so many files within the files. I don’t know what to do with all of them. Once I’ve seen this type stuff actually done once or twice, I’m good to go from there on out, but for whatever reason, I just can’t seem to get this going on my own by reading the instructions. I literally need it laid out before for the first time as, “a,b,c….” The people that have been able to get going with the instructions seem to have at least some experience with terminal, etc. I do know that this is the portion that if one single character or space is incorrect, nothing will work. I’m not completely sure of what specific info is supposed to even go into the “mining port address” within the Litecoin program itself. Does it literally need “http://”? unlike a web browser anymore. I’ve tried that all ways, but I realize if the commands themselves are incorrect, no amount of miner/worker info is going to make it work either.

        Again, I really appreciate your trying to assist and I wished I were able to understand what you have laid out better. I’d pay you as well. If you live around The Woodlands, TX., let me know. What I really need is someone to just talk me through it over the phone. I can’t think of anyone at work that knows this type stuff any better than myself.

        Thank you, Jay!

  5. Pingback: Bitcoin & Litcoin Proxy Mining on Mac OS X |

  6. Pingback: When is a 4 core CPU a 2 core CPU? | Musings from the Chiefio

  7. Konrad

    Everything is great except that I dont have the “Mining tab” on my LTC Wallet App. What to do then? Using MAC OS X 10.5.8

    1. nwoolls

      The Mining tab is no longer in the latest Litecoin-QT wallet app. I’ll update the blog post to reflect this fact. Sorry for the confusion!

  8. nOOn

    Hello, what do you mean, in the same folder as Litecoin Qt? I tried to put it in the Applications folder, in the same package, nothing works… keeps on telling me it doesn’t find the command?

  9. Digitalcoins

    I have a question. Do I need to setup somehow litecoin wallet to start mining or not? Do I need to setup server IP etc., or I can just click “mine”?

  10. Vitali

    Hi Jay,

    maybe my question is really dumb, but I googled and searched the web for the answer about,… it felt like 2 million years. I didnt fint the answer.
    Where do the mined coins go? In my wallet file? Where is it saved, if I dont mine with Litecoin-QT?

    1. Ben

      You will join a litecoin mining pool of your choice. On the website for your mining pool, normally located in the account area you will enter your wallet address. After that, create a new worker through your pool then use that with your miner.

      Any coins you collect while mining in your pool will be automatically added to your wallet (provided you entered your wallet address in your account settings on the pools website) after some time.

  11. Aaron

    when inputting the mining command:

    ./minerd -o http://host:port -u username -p password -t thread-count

    into the minerd, what is the username and password that i should enter? also how do i connect it with pooled mining.


  12. Kris

    Do I need to worry about my MBP overheating? I’ve read that using MBPs for bitcoin mining can be quite dangerous.

    Any thoughts?

  13. Kyle

    I believe I have everything properly configured

    ./minerd -a scrypt -o stratum+tcp:// -O username.1:password

    And I keep getting:

    Stratum authentication failed
    …retry after 30 seconds

    If I try it with Asteroid I get
    Incorrect username/password

    I have verified on give-me-coins that my username and password are correct (under settings -> miners)
    I am adding the username.1

    I am using version 2.3.2 of minerd

    Any ideas?

  14. freya

    Hi~It is a very useful article. But I have a problem now. What’s the threads number?(My computer is mac book pro). Now I have set it 8. But I have see someone set it 99!!! So I am confused.Looking forward for your answer

  15. theo

    I’ve done everything you said. I’m running os x 10.6.8. I put the ltc wallet and minerd into a folder in the applications folder in my user section. When I open minerd it says no credentials entered and it wont let me type anything. What do I do?

  16. Andy

    I have been experimenting with doing a bit of litecoin mining on my hackintosh with a couple of 5770 cards in…
    Having tried all the settings and configurations I can’t get either card to run at more than about 70kh/s under os x 10.8.2 The biggest difference is in the intensity which seems to put more load on the gpu, but the highest it will go before falling over is 18, having spent much time with the thread concurrency can’t say it seems to make much odds.

    However if I boot into windows and use the exact same configuration I can get in the region of 200kh/s on each card in windows 7 (64bit) In windows it seems to work it much harder as within a short time the gpu fans are running much faster and louder. Even if I underclock the card.

    cg miner doesn’t seem to want to push the cards hard at all on osx and I dunno how to open this out, but my experience so far is mining in windows is over 2x as fast, and using multiple gpu’s this makes a big difference…

    any ideas on getting comparative hash rates ?

    –scrypt -o stratum+tcp:// -u xxx -p xxx –worksize 64 –lookup-gap 2 -d 1 –intensity 18 –queue 3 –shaders 800

  17. Sonny

    I believe I have followed the above instructions to the letter, but when I run the command line instruction I get the following error…

    -bash: ./minerd: No such file or directory

    I can confirm that minerd is in the same directory as the Litecoin wallet App. Any thoughts? would be appreciated.



  18. Ash

    Great set of posts on this!

    I’ve got an Xserve running with Macminer, and it seems to be working mining Litecoin, i have switched on debug output and get the following – see below – however, i have let it run all night, and although it seems to be getting “work”, the top bar always stays with a “0 KH” and a message saying “Starting” – it never goes to anything other than “Starting”, and no coins obviously either.

    Any ideas?

    the output:

    [2014-02-04 07:21:23] 4 miner threads started, using 'scrypt' algorithm.
    [2014-02-04 07:21:23] Binding thread 0 to cpu 0
    [2014-02-04 07:21:23] Binding thread 1 to cpu 1
    [2014-02-04 07:21:23] Binding thread 3 to cpu 3
    [2014-02-04 07:21:23] Binding thread 2 to cpu 2
    [2014-02-04 07:21:23] DEBUG: got new work in 3 ms
    [2014-02-04 07:21:23] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:23] DEBUG: got new work in 0 ms
    [2014-02-04 07:21:23] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:25] thread 2: 4104 hashes, 2.41 khash/s
    [2014-02-04 07:21:25] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:25] thread 1: 4104 hashes, 2.22 khash/s
    [2014-02-04 07:21:25] DEBUG: got new work in 5 ms
    [2014-02-04 07:21:25] thread 3: 4104 hashes, 2.18 khash/s
    [2014-02-04 07:21:25] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:25] thread 0: 4104 hashes, 2.01 khash/s
    [2014-02-04 07:21:25] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:30] thread 0: 10044 hashes, 2.06 khash/s
    [2014-02-04 07:21:30] DEBUG: got new work in 3 ms
    [2014-02-04 07:21:30] thread 3: 10908 hashes, 1.93 khash/s
    [2014-02-04 07:21:30] DEBUG: got new work in 7 ms
    [2014-02-04 07:21:31] thread 1: 11088 hashes, 1.85 khash/s
    [2014-02-04 07:21:31] DEBUG: got new work in 1 ms
    [2014-02-04 07:21:31] thread 2: 12036 hashes, 1.94 khash/s


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>