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

Erro in useing cmake #40

Open whitene opened 1 year ago

whitene commented 1 year ago

when I use cmake ,it encountered the following problem: -- Found these msgpack libs: /usr/lib/x86_64-linux-gnu/libmsgpackc.so -- Could NOT find LibUUID (missing: UUID_LIBRARY UUID_INCLUDE_DIR) -- 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! May I ask how to solve it?

lli-rice commented 5 months ago

Hi, did you manage to fix this problem? If so, would you mind to share? I ran into the same problem.

whitene commented 5 months ago

Hi, did you manage to fix this problem? If so, would you mind to share? I ran into the same problem.

Here is the record I wrote at that time,take a look and see if it will be useful to you Solution: The online solution is to download using pip, but I still encountered the above error after following the pip method. I downloaded libuuid-1.03.tar.gz directly from the Jihu website to Windows, and then dragged it into the virtual machine to decompress:

tar -zxvf libuuid-1.0.3.tar.gz
cd libuuid-1.0.3
./configure --prefix=/user/local/libuuid/1_0_3
make
make install

Return to the CCMPred directory and run cmake again, There is still an error prompt, and when I searched online, I found that the CMake version is too low, so I went to the CMake website again( https://cmake.org/download/ )I downloaded the latest version of CMake. The problem can be solved. Download Cmake:

wget https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4.tar.gz
tar -zvxf cmake-3.26.4.tar.gz
cd cmake-3.26.4
./bootstrap
make
echo 'export PATH=~/home/wangting/ECNet/CCMpred/cmake-3.26.3/bin/:$PATH'  >>~/.bashrc
source ~/.bashrc 
lli-rice commented 5 months ago

Thank you!