soedinglab / CCMpred

Protein Residue-Residue Contacts from Correlated Mutations predicted quickly and accurately.
http://www.ncbi.nlm.nih.gov/pubmed/25064567
GNU Affero General Public License v3.0
107 stars 25 forks source link

Error when trying to install without CUDA #26

Open AnnaSm0 opened 4 years ago

AnnaSm0 commented 4 years ago

I'm trying to create a singularity container with ccmpred in it but the ccmpred installation fails.

-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- The CUDA compiler identification is unknown
CMake Error at CMakeLists.txt:115 (enable_language):
  No CMAKE_CUDA_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

Since you state in your readme, that CUDA is optional, I would expect that the installation would recognize if someone is trying to install ccmpred without CUDA instead of throwing an error...

I would be happy if someone could help me out with a quick fix 🙂. But I also think this should be addressed on a higher level.

Best wishes,

Anna Smolinski

grubermar commented 4 years ago

As a workaround, you could try to tell cmake explicitly that you do not want to compile the CUDA version:

cmake -DWITH_CUDA=OFF ${PATH_TO_CCMPRED_REPO}

instead of just calling cmake.

AnnaSm0 commented 4 years ago

Thank you! Now I could actually build the container 🙂