做 PHP 和java 开发有几年了,linux 上安装mysql 不下上百次。从来都是 下载 wget 包, chmod 下操作权限,而后tar 解压。 cd 进去、./configure 检查环境、 echo $? 查看下错误、 make && make install 编译和安装。
今天在 检查环境的时候。报出
make: *** No targets specified and no makefile found. stop.
一连串的几行错误。
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
发现没有ncurses安装包
解决方法(redhat下):
yum list|grep ncurses
yum -y install ncurses-devel
yum install ncurses-devel
就可以了。debian(没试过) 下:
apt-cache search ncurses
apt-get install libncurses5-dev
继续检查完成。
然后 make 的时候又报错了。缺少g++编译器(错误图忘了截屏)
解决方法:
安装:
yum -y install gcc automake autoconf libtool make
安装g++:
yum install gcc gcc-c++
重新 ./configure make && make install 就可以了。