Wind Network (ithov.com) original article: Today compiled mysql-5.6.15-linux-glibc2.5-x86_64.tar.gz version, must be an error, the information is as follows:
[Root@localhost mysql]# scripts/mysql_install_db--user=http://www.aliyun.com/zixun/aggregation/33.html ">mysql- Basedir=/usr/local/mysql--datadir=/data/mysql/data--force
SH:/usr/local/mysql/bin/my_print_defaults:cannot Execute binary file
FATAL error:neither host ' localhost.localdomain ' nor ' localhost ' could be looked
/usr/local/mysql/bin/resolveip
Please configure the ' hostname ' command to return a correct
Hostname.
If you are want to solve this in a later stage, restart this script
With the--force option
Use the command to modify the hostname or not.
[Root@localhost scripts]# echo "127.0.0.1 localhost.localdomain localhost" >> hosts
Still reported SH:/usr/local/mysql/bin/my_print_defaults:cannot execute binary file error
View MySQL official about 5.6 of the source code installation documents, found that the official use CMake command to compile, run CMake error information as follows:
[Root@localhost mysql]# CMake.
CMake error:the source directory "usr" does not appear to contain CMakeLists.txt.
Specify--HELP for usage, or press the Help button on the CMake GUI.
See the MySQL folder, found no cmakelists file, I see. Re-download, we need to find MySQL Community Server 5.6.15 in this version of (mysql-5.6.15.tar.gz), screenshots are as follows:
After downloading completes, the decompression uses the CMake command, installs successfully.