mysql 5 5 28原始碼安裝過程中錯誤總結

2022-09-23 10:46:55 字數 1210 閱讀 6457

介紹一下關於mysql-5.5.28原始碼安裝過程中幾大錯誤總結,希望此文章對各位同學有所幫助。

系統centos 6.3 mini

(沒有任何編譯環境)

預編譯環境首先裝了眾所周知的 cmake(yum install cmake -y)

複製**

**如下:

using environment variable cc. see cmake_bootstrap.log for compilers

attempted.

好吧還是沒準備充分,發現c編譯程式沒裝,也就是gcc了,那就裝上(yum install gcc -y)

複製**

**如下:

cmake error: your cxx compiler:

"cmake_cxx_compiler-notfound" was not found.

額,這個算是個人新遇見的錯誤了,到處查詢資料,總算明白了,原來了還有一個c++的編譯程式沒裝,好吧(yum install

gcc-c++ -y),然後發現已經生成cmakecache.txt檔案了。沒辦法,刪了(rm -rf cmakecache.txt)繼續編譯!

複製**

**如下:

cmake error at cmake/readline.cmake:82

package,

remove cmakecache.txt and rerun cmake.on debian/ubuntu, package name

is libncurses5-dev, on redhat and derivates it is ncurses-devel.

果斷的又懵了,不知道**出了問題,猜是什麼包沒有裝吧,最後才看懂on debian/ubuntu, package name

is libncurses5-dev, on redhat and derivates it is

ncurses-devel.這兩句,ok裝了ncurses-devel這個包(yum install ncurses-devel -y)

warning:

bison executable not found in path

總算順利的配置成功了,提示一個警告,不能放過,一查是缺少bison,簡單了(yum

install bison -y)安裝解決!接著就make;make install啦!很幸運,順利完成!