关于ipmctl的安装以及遇坑,已有文章讲的很详细了(见https://blog.youkuaiyun.com/SweeNeil/article/details/89841813)
此处补充一下在我用cmake3.1.5安装ipmctl遇到错误提示的一个解决办法:此处贴出从stackoverflow里找的相似报错提示:
File /home/user1/Sources/caffe/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/user1/Sources/caffe/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_e693b/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_e693b.dir/build.make CMakeFiles/cmTC_e693b.dir/build
gmake[1]: Entering directory '/home/user1/Sources/caffe/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e693b.dir/CheckFunctionExists.c.o
/usr/bin/

在使用cmake 3.1.5安装ipmctl时遇到/usr/bin/ld: cannot find -lpthreads错误。问题可能由cmake低版本bug引起,尝试更新cmake到3.15版本后问题得到解决。日志中的错误并不总是准确,有时可能因缺少库或cmake版本过旧导致。
最低0.47元/天 解锁文章
2034

被折叠的 条评论
为什么被折叠?



