CCMpred icon indicating copy to clipboard operation
CCMpred copied to clipboard

Erro in useing cmake

Open whitene opened this issue 2 years ago • 3 comments

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?

whitene avatar Apr 23 '23 11:04 whitene

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

lli-rice avatar Mar 12 '24 00:03 lli-rice

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 

whitene avatar Mar 12 '24 02:03 whitene

Thank you!

lli-rice avatar Mar 12 '24 04:03 lli-rice