Compiling cgminer for the Raspberry Pi and Butterfly Labs “Jalapeño”

These instructions are for compiling cgminer on Raspian (a debian distro for the Raspberry Pi).

First, dependencies have to be installed:

sudo apt-get update
sudo apt-get install build-essential git pkg-config libtool \ libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf \ automake

Next clone the source files from github:

git clone

Once you have the source files, move to that directory and compile the code:

cd cgminer
CFLAGS="-O2 -Wall" ./configure --enable-bflsc
sudo make install

All that’s left is to plug in your Jalapeño (or any other BFL device) and run cgminer with:


If you encounter any problems, it’s likely because your build environment is different (or I forgot something). Leave a comment or message me and I can try to help.