Linux 下 MySQL 5.5.8 源碼編譯安裝記錄

來源:互聯網
上載者:User

系統:Ubuntu 10.10

mysql源碼檔案:mysql-5.5.8.tar.gz

安裝所需工具:cmake,   GNU make,   gcc,  Perl,  libncurses5-dev,  bison(可選),  chkconfig

註:
1.官方2010-11-18的源碼有幾處bug,在編譯之前參照官方的說明,進行了手動修改。

官方說明連結:http://lists.mysql.com/commits/126782

2.官方5.5版本參考手冊:http://dev.mysql.com/doc/

汗了一下,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

    ----報錯資訊

------------------www.bkjia.com---------------

              -- 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!

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

  • 1
  • 2
  • 3
  • 下一頁

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.