linux下源码安装mysql

Mysql 使用cmake安装,yum install cmake。


问题:1. You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>

依赖boost,解决方法:

1cmake .  -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目录下。

猜你喜欢

转载自blog.csdn.net/rdc2008/article/details/52605224