Building and maintaining bfgminer from source on Linux



This command should be valid on both Ubuntu and Debian based distributions including Mint, Crunchbang, and others Literally copy and paste the entire line while in your home directory (cd ~)

sudo apt-get install git build-essential autoconf automake make libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libmicrohttpd-dev -y && git clone https://github.com/luke-jr/bfgminer && cd bfgminer && ./autogen.sh && ./configure && make

That does NOT install it system wide. It simple enables to run bfgminer from within that folder. To install system wide (so it can be run as any user from any folder) type 'sudo make install' in the bfgminer directory AFTER the rest. Some systems may require you to run 'sudo ldconfig' to link your libraries. If 'make install' does not work try that.

To update your installation follow this step and include 'make install' to install system wide again if wanted: cd ~/bfgminer && git pull && ./autogen.sh && ./configure && make

Optionally, once you have the dependencies installed (everything before the "git clone" portion) you can download the prepackaged tar.bz2 files from BFGminer, unpack, cd bfgminer-***, ./configure, make, sudo make install.

Either method will work. The 'git-clone' method will just give you the latest source.

Lastly, make sure your user is in the dialout group. sudo gpasswd -a yourname dialout

Log out, log back in, open a terminal (if you're in a gui) and type 'groups'. You should be set to mine with most every USB ASIC. Head back to the referring page and go mine.