Mysql compilation and installation in centos reports an error

Source: Internet
Author: User


When mysql is compiled and installed in centos, the following error is reported: www.2cto.com Java code [root @ vps870 mysql-5.5.28] # cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysql \>-DMYSQL_UNIX_ADDR =/tmp/mysql. sock \>-DDEFAULT_CHARSET = gbk \>-DDEFAULT_COLLATION = gbk_chinese_ci \>-DWITH_EXTRA_CHARSETS: STRING = gbk, gb2312, utf8 \>-DWITH_MYISAM_STORAGE_ENGINE = 1 \>-DWITH_INNOBASE_STORAGE_ENGINE = 1 \>-DWITH_R EADLINE = 1 \>-DENABLED_LOCAL_INFILE = 1 \>-DMYSQL_DATADIR =/var/mysql/data-bash:/usr/bin/cmake: no such file or directory later knows this problem because you directly use the cmake system to return to the default/usr/bin for search, but the cmake installed in src is in/usr/local/bin, so of course this stuff won't be found. Solution: 1. Create a link: ln-s/usr/local/bin/cmake/usr/bin2. directly use/usr/local/bin/cmake for compilation.
 

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.