错误1
make: *** No targets specified and no makefile found.  Stop.
1、wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
2.、tar zxvf ncurses-5.6.tar.gz
3、 ./configure -prefix=/usr/local -with-shared-without-debug
4、make
5、make install
报错2:
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
解决办法:
#yum install libaio* -y
报错:
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解决办法:
yum install -y numactl
报错3
FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
Data::Dumper
解决办法:
#yum install -y perl-Data-Dumper
错误4
./bin/mysqld: unknown option '--skip-locking'
解决办法
删除/etc/my.cnf重新编译
错误5
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
解决办法
卸载系统自带的mysql,这个错误的原因很多,如果不是这个原因就试其他办法
错误6
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解决办法
centos: yum -y install numactl
ubantu: sudo apt-get install numactl
错误7
WARNING: The host 'mydb1' could not be looked up with ./bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
解决办法
添加IP和主机名:
vim /etc/hosts
xxx.xxx.xxx.xxx         mydb