I am not a Linux expert, so it took me some time to configure my mining rig on Ubuntu 18.04 with NVIDIA GeForce GTX 1060 3GB, and I wrote down all the steps I did:
First I installed NVIDIA driver, but OpenCL did not install automatically with it and I installed it manually with the following command:
sudo apt install -y ocl-icd-libopencl1
Then I installed CURL:
sudo apt install -y libcurl3
not ‘curl’ and not ‘libcurl4’ packages, otherwise the miner will fail to start reporting the following error message:
./ethdcrminer64: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./ethdcrminer64)