mysql-5.5.28源碼安裝過程中錯誤總結

來源:互聯網
上載者:User

標籤:

介紹一下關於mysql-5.5.28源碼安裝過程中幾大錯誤總結,希望此文章對各位同學有所協助。
系統centOS 6.3 mini (沒有任何編譯環境)
先行編譯環境首先裝了眾所周知的 cmake(yum install cmake -y)

複製代碼 代碼如下:
、./bootstrap Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one 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 (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.

 

 


果斷的又懵了,不知道哪裡出了問題,猜是什麼包沒有裝吧,最後才看懂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啦!很幸運,順利完成!

mysql-5.5.28源碼安裝過程中錯誤總結

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.