Qihoo360 / QConf

Qihoo Distributed Configuration Management System
Other
1.87k stars 534 forks source link

cmake 出现错误啊 #96

Open duke315 opened 6 years ago

duke315 commented 6 years ago

咋办 cmake 报错了 Determining if the pthread_create exist failed with the following output: Change Dir: /usr/local/src/QConf/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3552244451/fast" /usr/bin/gmake -f CMakeFiles/cmTryCompileExec3552244451.dir/build.make CMakeFiles/cmTryCompileExec3552244451.dir/build gmake[1]: Entering directory /usr/local/src/QConf/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /usr/local/src/QConf/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3552244451.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec3552244451.dir/CheckSymbolExists.c.o -c /usr/local/src/QConf/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec3552244451 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3552244451.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec3552244451.dir/CheckSymbolExists.c.o -o cmTryCompileExec3552244451 -rdynamic CMakeFiles/cmTryCompileExec3552244451.dir/CheckSymbolExists.c.o: In functionmain': CheckSymbolExists.c:(.text+0xc): undefined reference to pthread_create' collect2: ld 返回 1 gmake[1]: Leaving directory/usr/local/src/QConf/build/CMakeFiles/CMakeTmp' gmake[1]: [cmTryCompileExec3552244451] 错误 1 gmake: [cmTryCompileExec3552244451/fast] 错误 2