Forked from ruby-install and adapted to work with CGMiner and its myriad of forks.
Currently supports installation of CGMiner, BFGMiner, or SGMiner
- Supports installing arbitrary versions.
- Supports installing into
/opt/miners/
for root and~/.miners/
for users by default. - Supports installing into arbitrary directories.
- Supports downloading from arbitrary URLs.
- Supports downloading from mirrors.
- Supports downloading/applying patches.
- Supports specifying arbitrary
./configure
options. - Supports downloading archives using
wget
orcurl
. - Supports verifying downloaded archives using
md5sum
,md5
oropenssl md5
. - Supports installing build dependencies via the package manager:
Has tests.Sorry...
- Does not require updating every time a new miner version comes out.
- Does not require recipes for each individual miner version or configuration.
- Does not support installing trunk/HEAD.
- bash >= 3.x
- wget or curl
md5sum
,md5
oropenssl md5
.tar
patch
(if--patch
is specified)- gcc >= 4.2 or clang
List supported Rubies and their major versions:
$ miner-install
Install the current stable version of CGMiner:
$ miner-install cgminer
Install a latest version of SGMiner:
$ miner-install sgminer 4.1
Install a specific version of BFGMiner:
$ miner-install bfgminer 3.10.0
Install a miner into a specific directory:
$ miner-install -i /usr/local/ cgminer 3.7.2
Install a miner with a specific patch:
$ miner-install -p https://raw.github.com/gist/4136373/falcon-gc.diff cgminer 4.1.0
Install a miner with a specific configuration:
$ miner-install bfgminer -- --enable-shared --enable-dtrace CFLAGS="-O3"
git clone https://github.com/gevans/miner-install.git
cd miner-install
sudo make install