Install mysql from source code under linux

Mysql is installed using cmake , first yum install cmake.


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

Depends on boost, the solution:

1cmake .  -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost

2) If you can't download it, you can download it through wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz or download it by yourself and put it in the /usr/local/boost/ directory, cmake will decompress itself.


问题2.  Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)

Depends on curse, the solution:

yum install ncurses-devel

rm CMakeCache.txt

cmake . -DWITH_BOOST=/usr/local/boost


PS: The mysql test case is located in the testclients directory.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325951504&siteId=291194637