-4

This question already has an answer here:

First I would like to say that I am new to Ubuntu and Linux.

I get an error with the make install when following the below instructions to install a Linux version of cpuminer-multi.

make: No rule to make target 'install'. Stop.

I have placed what is in the folder that gets created when I attempt to install at the end. What am I missing?


SCRIPTS USED

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-5 g++-5 make
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5
curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/## Heading ##
cd /tmp/cmake-3.4.1/ && ./configure && make && sudo make install && cd -
sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
sudo apt install libmicrohttpd-dev libssl-dev libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
cd xmr-stak/build
cmake ..
make install

FILES/FOLDERS GENERATED

build
CMakeLists.txt
doc
LICENSE
scripts
xmrstak
CI
CONTRIBUTING.md
Dockerfile
README.md
THIRD-PARTY-LICENSES

marked as duplicate by Eric Carvalho, Amith KK, K7AAY, David Foerster, N0rbert Jul 22 '18 at 12:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The line before "make install" ? – Antonio Figueroa May 21 '18 at 13:14
  • cmake is like configure. You have to run make after it. – Melebius May 21 '18 at 13:14
  • 2
    @ Antonio Not sudo make, just make. sudo should be only applicable for the install phase. BTW do you have any Makefile? It should be generated by CMake. If not, check the CMake output for errors. @steeldriver You might be right. It looks like CMake did not finish successfully. – Melebius May 21 '18 at 13:28
  • 1
    You almost certainly don't need to install cmake itself from source - use apt like you did for the other build tools – steeldriver May 21 '18 at 13:35
  • 1
    In case you hadn't noticed, you already used apt when you did sudo apt install gcc-5 g++-5 make – steeldriver May 21 '18 at 15:04
3

The correct way on installation is as follows (tested on Ubuntu 16.04 LTS and 18.04 LTS):

  1. Get all needed dependencies

    sudo apt-get install cmake build-essential git libmicrohttpd-dev \
    libssl-dev libhwloc-dev
    
  2. Clone repository

    git clone https://github.com/fireice-uk/xmr-stak.git
    
  3. Configure and compile source

    cd xmr-stak
    mkdir build
    cd build
    
    # I do not have CUDA and OpenCL-capable hardware, so I disabled them
    cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF 
    
    make
    
  4. Install the application

    sudo make install
    

Not the answer you're looking for? Browse other questions tagged or ask your own question.