欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Linux MYSQL5 source install

程序员文章站 2022-07-13 21:10:19
...

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

 

参考链接 http://blog.sina.com.cn/s/blog_69ed8b110101b1jg.html