When installing MySQL today, the following error is reported when the./configure command is executed because the package selected by default is not installed in the initial Linux:
./Configure -- prefix =/usr/local/mysql -- with-charset = utf8 -- with-collation = utf8_general_ci -- with-extra-charsets = gb2312
-- With-plugins = innobase, innodb_plugin, myisam, heap, csv, federated, blackhole -- enable-local-infile -- enable-thread-safe-client
...
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
The cause of the error is that the ncurses installation package is missing. You can download and install the corresponding software package ncurses-devel to solve the problem:
Yum install ncurses-devel
Another error:
G ++: not found
../Depcomp: line 571: exec: g ++: not found
Make [1]: *** [my_new.o] Error 127
Make [1]: Leaving directory '/opt/src/mysql-5.1.56/mysys'
Make: *** [all-recursive] Error 1
The error is caused by the lack of G ++ compiler. You can mount the original system disk and find the corresponding suite to solve the problem:
Gcc-4.1.2-46.el5.x86_64.rpm
Gcc-c ++-4.1.2-46. el5.x86 _ 64.rpm
During installation, you may be prompted that other dependent packages should be installed in advance. You can find them in the original system disk as prompted.