How can I install ethminer on ubuntu 17.04

47,518

Solution 1

No wonder knowing that you can't install ethminer directly from apt install command, when I try to find ethminer package on Etherum's launchpad page, return with no avail. So basically the ethminer package doesn't belong to the ppa, it's unknown either the instruction article is outdated or other reason.

I suggest you to read this https://github.com/ethereum/go-ethereum/wiki/Mining#gpu-mining-with-ethminer, there are tutorials available on how to install ethminer from source depending on OS, though I haven't tested this method.

Solution 2

I got this to work in 17.04 by downloading the ethminer binary directly from https://github.com/ethereum-mining/ethminer/releases

I also had to install the nvidia cuda drivers with this command

sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit nvidia-nsight

Solution 3

I currently understand you should use the following:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum-qt
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo add-apt-repository ppa:ethereum/ethereum-dev
sudo apt-get update
sudo apt-get install ethereum
sudo apt-get install cpp-ethereum

But I don't think cpp-ethereum is supported for Zesty yet in the ppa's (see here) since cpp-ethereum fails to install. Instead download the project from here and follow instructions to build from source.

However, according to the build instructions,

Mining

This project is not suitable for Ethereum mining. The support for GPU mining has been dropped some time ago including the ethminer tool. Use the ethminer tool from https://github.com/ethereum-mining/ethminer.

So don't think you actually need cpp-ethereum. But I'm just learning this stuff so may update this later. I'm building cpp-ethereum on 17.04 as I type !

UPDATE

Ok, if I'm to follow my original tutorial and the comment about mining in the build instructions of cpp-ethereum then it seems what I actually have to do is build ethminer from here. On with that now. Will update again soon.

UPDATE

That worked.

Share:
47,518

Related videos on Youtube

startoftext
Author by

startoftext

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In maximus enim at felis sagittis elementum. Morbi odio lacus, fringilla ac pretium ut, semper vitae tortor. Praesent eget ante pretium, ultricies elit fringilla, sodales eros. Donec maximus ac enim eu sodales. Suspendisse ac lectus congue nisl interdum placerat. Nulla condimentum quis mi in vestibulum. Mauris dapibus, lectus et consequat venenatis, mi massa bibendum velit, sit amet ultrices leo lectus eu magna. Integer egestas massa vel eros ullamcorper, id maximus purus tincidunt. Phasellus nec metus sapien. Fusce ornare libero turpis, vel blandit ex tristique at. Integer suscipit nunc turpis, ac congue magna sodales vel. Duis hendrerit, turpis id bibendum congue, metus elit laoreet leo, eget feugiat neque dolor vel ex.

Updated on September 18, 2022

Comments

  • startoftext
    startoftext over 1 year

    I was following this guide. https://www.meebey.net/posts/ethereum_gpu_mining_on_linux_howto/

    Basically its instructions are like this

    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:ethereum/ethereum
    sudo apt-get update
    sudo apt-get install ethereum ethminer
    geth account new
    # copy long character sequence within {}, that is your <YOUR_WALLET_ADDRESS>
    # if you lose the passphrase, you lose your coins!
    sudo apt-get install linux-headers-amd64 build-essential
    chmod +x NVIDIA-Linux-x86_64-367.35.run
    sudo NVIDIA-Linux-x86_64-367.35.run
    ethminer -G -F http://yolo.ethclassic.faith:9999/0x<YOUR_WALLET_ADDRESS> --farm-recheck 200
    

    On the command sudo apt-get install ethereum ethminer it fails with the error:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package ethminer
    

    I did follow the instruction of adding the ethereum ppa so I am not sure why it will cannot find the ethminer package. Is the guide just out of date?