[root@Li mysql-5.1.72]# ./configure --prefix=/usr/local/mysql 执行编译时报错。
--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock
--localstatedir=/usr/local/mysql/data
--enable-assembler
--enable-thread-safe-client
--with-mysqld-user=mysql
--with-big-tables
--without-debug
--with-pthread
--enable-assembler
--with-extra-charsets=complex
--with-readline
--with-ssl
--with-embedded-server
--enable-local-infile
--with-plugins=partition,innobase
--with-plugin-PLUGIN
--with-mysqld-ldflags=-all-static
--with-client-ldflags=-all-static
checking for termcap functions library... configure: error: No curses/termcap library found
原因是缺少ncurses-devel 这个包
解决办法是:
[root@Li ~]# yum -y install ncurses-devel
然后再次执行就会顺利的通过。