手机版
你好,游客 登录 注册
背景:
阅读新闻

CentOS 安装 MySQL 出错帮助

[日期:2010-11-21] 来源:Linux社区  作者:Linux [字体:大 中 小]

如果编译时出现了以下错误:
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
说明 curses/termcap 库没有安装

出现这样的原因,首先要将ncurses的相关包包安装上
一、如果你的系统是RedHat系列:
yum list|grep ncurses
yum -y install ncurses-devel
yum install ncurses-devel

二、如果你的系统是Ubuntu或Debian:
apt-cache search ncurses
apt-get install libncurses5-dev

然后增加一条编译参数
--with-named-curses-libs=/usr/lib/libncursesw.so.5
就可以了

出现:configure: error: No curses/termcap library found
解决方法:

# ./configure --prefix=/usr/local/mysql

为 .#./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5

出现:

../depcomp: line 571: exec: g++: not found
make[1]: *** [my_new.o] 错误 127
make[1]: Leaving directory `/home/justme/software/mysql-5.1.30/mysys'
make: *** [all-recursive] 错误 1

解决 :

下载 安装 gcc-c++-4.1.2-33.i386.rpm(yum intall gcc-c++)

安装或者重新mysql-5.1.30时mysql_install_db出现FATAL ERROR: Could not find mysqld错误解决,

因为/etc/mysql/下出现了个my.cnf

解决方法:

mv /etc/my.cnf   /etc/my.cnf.bak

cp support-files/my-medium.cnf   /etc/cnf

linux
相关资讯       CentOS 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款