Error help for installing MySQL in CentOS

Source: Internet
Author: User

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

Related Article

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.