当前位置:Gxlcms > mysql > Linux下MySQL5.5.8源码编译安装记录

Linux下MySQL5.5.8源码编译安装记录

时间:2021-07-01 10:21:17 帮助过:16人阅读

系统: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!

---------------------------------

linux

人气教程排行