1.Download mysql.tar.gz AND CMAKE(mysql5 need Cmake build)
2.install cmake (ubuntu sudo apt-get install cmake)
3.cmake -DCMAKE_INSTALL_PREFIX=/home/yangjie/usr/local/mysql5
-DMYSQL_DATADIR=/home/yangjie/usr/local/mysql5/data
-DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=all
-DENABLED_LOCAL_INFILE=1
error1:
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test HAVE_PEERCRED - Failed
Warning: Bison executable not found in PATH
-- Configuring incomplete, errors occurred!
1.ubuntu10.04 sudo apt-get install g++
2.ubuntu10.04 sudo apt-get install bison