• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

源码安装mysql可能遇到的有关问题及解决方法

mysql 搞代码 7年前 (2018-06-04) 155次浏览 已收录 0个评论

源码安装mysql可能遇到的问题及解决办法

本文用来解决从源码安装mysql时,通常在运行configure,make&&make install命令时可能碰到的问题及解决办法

问题一,报错如下:

configure: error: in `/Application/mysql-5.1.58': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.

欢迎大家阅读《源码安装mysql可能遇到的有关问题及解决方法》,跪求各位点评,by 搞代码

 

解决办法:运行命令 yum install gcc

 

 

问题二,报错如下:

checking for tgetent in -lncursesw... no checking for tgetent in -lncurses... no checking for tgetent in -lcurses... no checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for termcap functions library... configure: error: No curses/termcap library found

 

解决办法:

一、如果你的系统是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

 

问题三,报错如下:

DEFAULT_SYSCONFDIR="/"/usr/local/mysql/etc/"" -DHAVE_CONFIG_H -I. -I../include -I../zlib -I../include -I../include -I.    -O    -fno-implicit-templates -fno-exceptions -fno-rtti -c -o my_new.o my_new.cc ../depcomp: line 571: exec: g++: not found make[1]: *** [my_new.o] Error 127 make[1]: Leaving directory `/Application/mysql-5.1.58/mysys'

 

解决办法:运行命令: yum install -y gcc-c++ && yum install libstdc++-devel,并且重新运行configure 命令

 

 

参考文章:

http://blog.csdn.net/heyouqianqiu/article/details/4129544
http://blog.csdn.net/zccst/article/details/4493074


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:源码安装mysql可能遇到的有关问题及解决方法

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址