Errors often occur when installing MySQL5.5 -- make_MySQL is missing

Source: Internet
Author: User
Tags localhost mysql
Errors often occur when installing MySQL5.5 -- make bitsCN.com is missing

Errors often occur when installing MySQL5.5 -- make is missing

First, I am a CentOS release 6.2 (Final), a newly installed system without any software or library files. Before installing mysql5.5, you need to take a rough look at the information that you need to pay attention to. the installation of mysql5.5 is different from that of other versions when compiling and installing, you need to use cmake, so do the following:

1. yum install gcc * c ++ * autoconf automake zlib * libxml * ncurses-devel libmcrypt * libtool-ltdl-devel * library files required to install the system

2. install the cmake tool. Yum install cmake *

3. because my system is newly installed without any software, if you use yum install cmake * to install mysql successfully, the following error will occur during mysql installation. for details, see:

[Root @ localhost mysql] # mysql-5.5.25a cd

[Root @ localhost mysql-5.5.25a] # cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysql-DMYSQL_UNIX_ADDR =/data/mysql. sock-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci-DWITH_EXTRA_CHARSETS: STRING = utf8, gbk-cores = 1-cores = 1-cores = 1-DWITH_READLINE = 1-DENABLED_LOCAL_INFILE = 1-DMYSQL_DATADIR =/data/mysql-DMYSQL_USER = mysql-DMYSQL_TCP_PORT = 3306

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

Missing variable is:

CMAKE_C_COMPILER_ENV_VAR

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

Missing variable is:

CMAKE_C_COMPILER

CMake Error: cocould not find cmake module file:/root/mysql/mysql-5.5.25a/CMakeFiles/CMakeCCompiler. cmake

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

Missing variable is:

CMAKE_CXX_COMPILER_ENV_VAR

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

Missing variable is:

CMAKE_CXX_COMPILER

CMake Error: cocould not find cmake module file:/root/mysql/mysql-5.5.25a/CMakeFiles/CMakeCXXCompiler. cmake

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

-- Refreshing incomplete, errors occurred!

This means that cmake is not properly installed. I have installed it with yum install cmake? Later, after yum install make, [root @ localhost mysql-5.5.25a] # yum install make

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package make. i686. 81-cancel6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

========================================================== ==========================================================

Package Arch Version Repository Size

========================================================== ==========================================================

Installing:

Make i686. 81-cancel6 base 386 k

Transaction Summary

========================================================== ==========================================================

Install 1 Package (s)

Total download size: 386 k

Installed size: 1.0 M

Is this OK [y/N]: y

Downloading Packages:

Make-3.81-20.el6.i686.rpm | 386 kB 00:01

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing: 1: make-3.81-20.el6.i686 1/1

Installed:

Make. i686. 81-el6

Complete!

BitsCN.com

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.