Skip to content

Instantly share code, notes, and snippets.

@paulsheldrake
Last active August 29, 2015 13:56
Show Gist options
  • Save paulsheldrake/9252808 to your computer and use it in GitHub Desktop.
Save paulsheldrake/9252808 to your computer and use it in GitHub Desktop.
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install libcurl-devel python-devel screen rsync
# install some depenencies for cuda
sudo yum -y install mesa-libGLU-devel-9.0-0.9.19.amzn1.x86_64 libXi-devel-1.6.1-3.7.amzn1.x86_64 libXmu-devel-1.1.1-2.8.amzn1.x86_64 libX11-devel-1.5.0-4.10.amzn1.x86_64 mesa-libGLU-devel-9.0-0.9.19.amzn1.x86_64
# install uthash
wget http://dl.fedoraproject.org/pub/epel/6/i386/uthash-1.9.8-3.el6.noarch.rpm
sudo yum install -y uthash-1.9.8-3.el6.noarch.rpm
cd ~/
# install jansson json library
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-2.6-1.el6.x86_64.rpm
sudo yum -y install jansson-2.6-1.el6.x86_64.rpm
cd ~/
# install yasm
git clone --recursive git://github.com/yasm/yasm.git
cd yasm
git checkout v1.2.0
cpus=$(cat /proc/cpuinfo | grep ^processor | wc -l)
./autogen.sh
./configure --prefix=$HOME/tools
sudo make -j $cpus
sudo make install
cd ~/
# install cuda toolkit
# DO NOT INSTALL THE DRIVER THAT COMES WITH THIS PACKAGE
wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run
sudo sh cuda_5.5.22_linux_64.run
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
cd ~/
git clone https://github.com/luke-jr/bfgminer.git --recursive
cd bfgminer
git checkout bfgminer-3.10.0
./autogen.sh
./configure
sudo make
sudo make install
cd ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment