Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro in useing cmake #40

Open
whitene opened this issue Apr 23, 2023 · 3 comments
Open

Erro in useing cmake #40

whitene opened this issue Apr 23, 2023 · 3 comments

Comments

@whitene
Copy link

whitene commented Apr 23, 2023

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
Copy link

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

@whitene
Copy link
Author

whitene commented Mar 12, 2024

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
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants