cmake . 时出现以下错误
Linking C executable cmTC_13bab
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_13bab.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=mbscmp CMakeFiles/cmTC_13bab.dir/CheckFunctionExists.c.o -o cmTC_13bab -rdynamic -lm -lcrypt -ldl -lpthread
CMakeFiles/cmTC_13bab.dir/CheckFunctionExists.c.o:在函数‘main’中:
CheckFunctionExists.c:(.text+0x15):对‘mbscmp’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_13bab.dir/build.make:97: recipe for target 'cmTC_13bab' failed
make[1]: *** [cmTC_13bab] Error 1
make[1]: Leaving directory '/u06/sys/mysql-5.6.23/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_13bab/fast' failed
make: *** [cmTC_13bab/fast] Error 2
解决方法:
rm CMakeCache.txt
yum apt-get ncurses-devel
sudo apt-get install libgl1-mesa-dev