Compiling cpuminer on a RaspberryPi

I just spent the last bit compiling cpuminer on the RaspberryPi, and here’s my notes:

  1. sudo apt-get install automake libcurl4-openssl-dev libssl-dev
  2. ./configure
  3. Edit the compat/jansson/makefile and switch ar and ranlib to gcc-ar and gcc-ranlib
  4. make
  5. strip cpuminer