Mysql 使用cmake安装,先yum install cmake。
问题:1. You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>
依赖boost,解决方法:
1)cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost
2)如果下载不了,可通过wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz或自己下载放到/usr/local/boost/目录下,cmake会自己解压。
问题2. Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
依赖curse,解决方法:
yum install ncurses-devel
rm CMakeCache.txt
cmake . -DWITH_BOOST=/usr/local/boost
PS:mysql测试用例位于testclients目录下。