mysql5.6 5.5转换出错_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

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参数重新编译

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*

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值