您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Linux 下 MySQL 5.5.8 源码编译安装记录

2024/3/21 6:46:36发布24次查看
系统:ubuntu 10.10mysql源码文件:mysql-5.5.8.tar.gz安装所需工具:cmake, gnu make, gcc, perl, libncurses5-dev, bis
系统:ubuntu 10.10
mysql源码文件:mysql-5.5.8.tar.gz
安装所需工具:cmake,   gnu make,   gcc,  perl,  libncurses5-dev,  bison(可选),  chkconfig
注:
1.官方2010-11-18的源码有几处bug,在编译之前参照官方的说明,进行了手动修改。
官方说明链接:
2.官方5.5版本参考手册:
汗了一下,3392页的参考手册!
=>工具安装:
1. cmake
    ----没有自己编译安装cmake
    ----shell:~$ sudo apt-get install cmake
    ----版本:2.8.2
2. gnu make
    ----ubuntu自带
    ----版本:3.81
3.gcc
    ----ubuntu自带
    ----版本:4.4.5(官方文档:必须3.2以上)
4.perl
    ----ubuntu自带
    ----版本:5.10.1
5.libncurses5-dev (ncurses-devel)
    ----若差了这个包,,在cmake的时候会报错。
    ----debian/ubuntu上的包名是libncurses5-dev,redhat和其他版本对应的是ncurses-devel
    ----shell:~$ sudo apt-get install libncurses5-dev
    ----报错信息
------------------
              -- mysql 5.5.8
              -- could not find curses (missing:  curses_library curses_include_path)
              cmake error at cmake/readline.cmake:82 (message):
                   curses library not found.  please install appropriate package,
remove cmakecache.txt and rerun cmake.on debian/ubuntu , package name is libncurses5-dev ,
                   on redhat and derivates it is ncurses-devel.
              call stack (most recent call first):
              cmake/readline.cmake:126 (find_curses)
              cmake/readline.cmake:216 (mysql_use_bundled_libedit)
              cmakelists.txt:256 (mysql_check_readline)
-- configuring incomplete, errors occurred!
---------------------------------
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product