Difference between revisions of "Ethereum: Git Clone Genoil"

From OnnoWiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
  apt-get install git libcryptopp-dev libleveldb-dev libjsoncpp-dev libjson-rpc-cpp-dev \
 
  apt-get install git libcryptopp-dev libleveldb-dev libjsoncpp-dev libjson-rpc-cpp-dev \
 
  libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 \
 
  libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 \
  opencl-headers mesa-common-dev libmicrohttpd-dev build-essential -y
+
  opencl-headers mesa-common-dev libmicrohttpd-dev build-essential curl -y
  
 +
==Install cmake==
 +
 
  cd /usr/local/src
 
  cd /usr/local/src
 
  apt remove --purge cmake
 
  apt remove --purge cmake
Line 21: Line 23:
 
  make install
 
  make install
 
  cp /usr/local/src/cmake-3.4.1/bin/* /usr/bin/
 
  cp /usr/local/src/cmake-3.4.1/bin/* /usr/bin/
 +
 +
==Install libssl==
 +
 +
apt install libssl-dev
 +
rm /usr/lib/x86_64-linux-gnu/libcurl*
 +
cd /usr/local/src
 +
wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
 +
tar zxvf curl-7.56.1.tar.gz
 +
cd /usr/local/src/curl-7.56.1
 +
./configure --with-ssl
 +
make
 +
make install
 +
cp /usr/local/bin/cur* /usr/bin/
 +
cp /usr/local/lib/libcur* /usr/lib/x86_64-linux-gnu/
 +
 +
==Compile Genoil==
  
 
  cd /usr/local/src/
 
  cd /usr/local/src/
Line 26: Line 44:
 
  cd /usr/local/src/cpp-ethereum/
 
  cd /usr/local/src/cpp-ethereum/
 
  mkdir build
 
  mkdir build
  cd build
+
  cd /usr/local/src/cpp-ethereum/build
 
  cmake -DBUNDLE=miner ..
 
  cmake -DBUNDLE=miner ..
 
  make -j8
 
  make -j8

Latest revision as of 17:28, 19 November 2017

sumber: https://github.com/nanopool/genoil-ethereum

sudo su
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
add-apt-repository -y ppa:ethereum/ethereum
apt update
apt-get -y install software-properties-common git
apt-get install git libcryptopp-dev libleveldb-dev libjsoncpp-dev libjson-rpc-cpp-dev \
libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 \
opencl-headers mesa-common-dev libmicrohttpd-dev build-essential curl -y

Install cmake

cd /usr/local/src
apt remove --purge cmake
wget http://www.cmake.org/files/v3.4/cmake-3.4.3.tar.gz
tar -xvzf cmake-3.4.3.tar.gz
cd cmake-3.4.3/
./configure
make 
make install
cp /usr/local/src/cmake-3.4.1/bin/* /usr/bin/

Install libssl

apt install libssl-dev
rm /usr/lib/x86_64-linux-gnu/libcurl*
cd /usr/local/src
wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
tar zxvf curl-7.56.1.tar.gz
cd /usr/local/src/curl-7.56.1
./configure --with-ssl
make
make install
cp /usr/local/bin/cur* /usr/bin/
cp /usr/local/lib/libcur* /usr/lib/x86_64-linux-gnu/

Compile Genoil

cd /usr/local/src/
git clone https://github.com/Genoil/cpp-ethereum/
cd /usr/local/src/cpp-ethereum/
mkdir build
cd /usr/local/src/cpp-ethereum/build
cmake -DBUNDLE=miner ..
make -j8


Saat menjalankan coba tambahkan

For OpenCL: --cl-global-work 16384
For CUDA: --cuda-grid-size 8192 --cuda-block-size 128 --cuda-schedule auto

Referensi