How can I install ethminer on ubuntu 17.04

Solution 1:

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 2:

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 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.