Mysql5.6 make 錯誤以及解決辦法


1.若make出現類似錯誤:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".

CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

表明make未安裝,執行:sudo apt-get install -y make

參見: Mysql 錯誤以及解決辦法

2.如果make到63%左右出現錯誤:

make[2]: *** [storage/perfschema/unittest/pfs_connect_attr-t] Error 1

make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2

則:cmake去掉-DWITH_PARTITION_STORAGE_ENGINE=1參數重新編譯

參見: 通用MYSQL5.5和5.6源碼包安裝

3.MySQL啟動報錯:

[ERROR] InnoDB: The system tablespace must be writable!

[ERROR] Plugin 'InnoDB' init function returned error.

則:rm -rf /usr/local/mysql/data/ib_logfile*

編譯參數及安裝過程: Linux源碼安裝mysql 5.6.12 (cmake編譯)

4.其他錯誤: Ubuntu 12 下的Mysql 5.5的 cmake 源碼編譯安裝

5.編譯錯誤:configure: error: No curses/termcap library found

查找文件系統:find / -name libncursesw*

如果找到則重新編譯並加上以下參數:

--with-named-curses-libs=/lib/i386-linux-gnu/libncursesw.so.5.9

或者安裝libncurses5-dev包:

sudo apt-cache search libncurses5 && sudo apt-get install -y libncurses5-dev

參考:http://younglab.blog.51cto.com/416652/136495

http://www.blogjava.net/wady/articles/294097.html

6.make出現錯誤:collect2: ld returned 1 exit status

嘗試如下解決方案:

sudo apt-get install -f sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install -f build-essential libncurses5-dev libncurses5

 https://my.oschina.net/cwalet/blog/180107


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM