If the following error occurs during compilation:
Checking for tgetent in-ltermcap... No
Checking for termcap functions library... Configure: error: No curses/termcap library found
It indicates that the curses/termcap library is not installed.
For this reason, first install the ncurses-related package
1. If your system is a RedHat series:
Yum list | grep ncurses
Yum-y install ncurses-devel
Yum install ncurses-devel
2. If your system is Ubuntu or Debian:
Apt-cache search ncurses
Apt-get install libncurses5-dev
Then add a compilation parameter.
-- With-named-curses-libs =/usr/lib/libncursesw. so.5
You can.
Displayed: configure: error: No curses/termcap library found
Solution:
#./Configure -- prefix =/usr/local/mysql
For. #./configure -- with-named-curses-libs =/usr/lib/libncursesw. so.5
Appears:
../Depcomp: line 571: exec: g ++: not found
Make [1]: *** [my_new.o] Error 127
Make [1]: Leaving directory '/home/justme/software/mysql-5.1.30/mysys'
Make: *** [all-recursive] Error 1
Solution:
Download and install gcc-c ++-4.1.2-33. i386.rpm (yum intall gcc-c ++)
When installing or re-mysql-5.1.30 mysql_install_db fatal error: cocould not find mysqld ERROR resolved,
My. cnf is displayed under/etc/mysql /.
Solution:
Mv/etc/my. cnf/etc/my. cnf. bak
Cp support-files/my-medium.cnf/etc/cnf