MySQL compilation Error

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.