How to compile ETHminer on Ubuntu 14.04


sudo -s
wget -O - | sudo apt-key add -
add-apt-repository "deb llvm-toolchain-trusty main"
add-apt-repository ppa:george-edison55/cmake-3.x
add-apt-repository -y ppa:ethereum/ethereum-qt
add-apt-repository -y ppa:ethereum/ethereum
add-apt-repository -y ppa:ethereum/ethereum-dev
apt-get -y update
apt-get -y upgrade
apt-get -y install cpp-ethereum screen build-essential git cmake llvm-3.8-dev opencl-headers libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjson-rpc-cpp-dev libmicrohttpd-dev libjsoncpp-dev libargtable2-dev libedit-dev mesa-common-dev ocl-icd-libopencl1 opencl-headers libgoogle-perftools-dev qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev libqt5webengine5-dev ocl-icd-dev libv8-dev libz-dev
//If you meet an error with libcryptopp-dev run :
dpkg -i --force-overwrite /var/cache/apt/archives/libcryptopp-dev_5.6.2-0~trusty6_amd64.deb
git clone
cd cpp-ethereum
nano cmake/EthCompilerSettings.cmake
# remove "-Werror" around line 5 then save the file
cmake -DBUNDLE=cudaminer
make -j<quantity of CPU thread you want to use while compiling>
sudo -s
cd cpp-ethereum/ethminer/

Your launch line will look like this :
./ethminer -U -F <pool> -cuda-devices <devices>

You may also like...

1 Response

  1. pshai says:

    [code]cpp-ethereum $ cmake -DBUNDLE=cudaminer
    — ctest path: /usr/bin/ctest
    — Found CryptoPP: /usr/include (found suitable version “5.6.2”, minimum required is “5.6.2”)
    - CryptoPP header: /usr/include
    - CryptoPP lib : cryptopp
    — Found leveldb: /usr/include
    - LevelDB header: /usr/include
    - LevelDB lib: /usr/lib/x86_64-linux-gnu/
    — Found jsoncpp: /usr/include/jsoncpp
    - Jsoncpp header: /usr/include/jsoncpp
    - Jsoncpp lib : /usr/lib/x86_64-linux-gnu/
    CMake Error at cmake/FindPackageHandleStandardArgs.cmake:138 (message):
    Could NOT find json_rpc_cpp (missing: JSON_RPC_CPP_INCLUDE_DIR
    JSON_RPC_CPP_CLIENT_LIBRARY) (Required is at least version “0.4”)
    Call Stack (most recent call first):
    cmake/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
    cmake/Findjson_rpc_cpp.cmake:116 (find_package_handle_standard_args)
    cmake/EthDependencies.cmake:60 (find_package)
    CMakeLists.txt:246 (include)

    — Configuring incomplete, errors occurred!

    [code]cpp-ethereum $ sudo apt install libjsoncpp-dev
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    libjsoncpp-dev is already the newest version (1.7.2-1).
    0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

    [code]cpp-ethereum $ sudo apt install libjson-rpc-cpp-dev -y
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package libjson-rpc-cpp-dev

    Mind updating your script?


Leave a Reply

Your email address will not be published. Required fields are marked *