centos安装mysql出错,CentOS安装MySQL出错帮助

如果编译时出现了以下错误:checking for tgetent in -ltermcaphellip; nochecking for termcap functions libraryhellip; con

logo.jpg

首页 → 数据库技术

背景:

阅读新闻

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

logo.gif

0

CentOS5.4安装Oracle10g数据库总结

新版MySQL 数据库安装

相关资讯

CentOS

图片资讯

本文评论

查看全部评论 (0)

评论声明

最新资讯

本周热门

Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们

本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。

Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:php中文网

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值