Mysql5.6 make 错误以及解决办法
2017-03-16 14:42
281 查看
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
尝试如下解决方案:
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 libncurses5https://my.oschina.net/cwalet/blog/180107
相关文章推荐
- 编译php 出现 make: *** [ext/mysqli/mysqli.lo] Error 1 错误的解决办法
- mysql2503、2502错误无法安装 以及安装后找不到服务的解决办法
- MySQL 5.6 root密码忘记以及1045错误解决(方法一样)
- Mysql 错误以及解决办法
- mysql中错误提示以及解决办法
- mysql-5.7.10-winx64免安装配置方法以及mysql服务无法启动 服务没有报告任何错误解决办法
- mac上安装mysql 以及root密码忘记或权限错误的解决办法
- Java使用jdbc链接数据库的MySQL 5.5.45+以及SSL错误解决办法
- 连接MySql的时候报1130的错误解决办法以及远程登陆方法.
- 免安装版--- mysql 启动报错--发现系统错误2,系统找不到指定的文件。解决办法
- caffe---make发生的错误和解决办法2
- IIS常见错误以及问题的解决办法,0x80070021,需要启动父路径(转)
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- mysql 错误大全以及解决方法
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- MySQL 1366 错误的解决办法
- 连接MySql的时候报1130的错误解决办法
- python连接ubuntu系统的mysql出现错误的解决办法
- mysql导入数据时提示 USING BTREE 错误解决办法
- mysql报ERROR 2002 (HY000)错误的解决办法