Resolves the source directory "USR" does not appear to contain CMakeLists.txt error

Source: Internet
Author: User
Keywords Cmake cmakelists.txt
Tags .gz aliyun compiled directory error file hostname html

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.

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.