title: Installing CUDA for Linux: Could NOT find CUDA
body: <p>I want to install CUDA on my Ubuntu 14.04 machine. So, I downloaded the .deb package from <a href="https://developer.nvidia.com/cuda-downloads" rel="nofollow">https://developer.nvidia.com/cuda-downloads</a>, which opened in Ubuntu Software Centre by default and then installed <code>cuda-repo-ubuntu1404</code>.</p>
  
  <p>Now, I am trying to build another library which depends on CUDA, and in this case, I get the following error message:</p>
  
  <pre><code>CUDA_TOOLKIT_ROOT_DIR not found or specified
  -- Could NOT find CUDA (missing:  CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
  </code></pre>
  
  <p>Any ideas on what is going on here?</p>