Home Database Mysql Tutorial 安装MySQL5.5时常见错误--缺失make_MySQL

安装MySQL5.5时常见错误--缺失make_MySQL

Jun 01, 2016 pm 01:30 PM
information software

bitsCN.com

安装MySQL5.5时常见错误--缺失make

 

首先我这是一台CentOS release 6.2 (Final),新安装的系统,没有任何软件及库文件。安装mysql5.5之前,先需要大概了解一下,需要注意的信息,mysql5.5的安装与其它版本不同的是编译安装时,需要用到cmake,所以做如下操作:

 

1.yum install gcc* c++ * autoconf automake zlib*  libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*安装系统所需要的库文件

 

2.安装cmake工具。yum install cmake*

 

3.由于我这个系统是新安装的没有任何软件,所以如果用yum install cmake*安装成功后,到安装mysql时会出现如下错误,请看:

 

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

 

[root@localhost mysql-5.5.25a]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=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: Could 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: Could 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

 

-- Configuring incomplete, errors occurred!

 

大概的意思就是说cmake没有安装好,我明明用yum install cmake*安装好了呀?后来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 1:3.81-20.el6 will be installed

 

--> Finished Dependency Resolution

 

 

 

Dependencies Resolved

 

 

 

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

 

 Package        Arch            Version                  Repository      Size

 

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

 

Installing:

 

 make            i686            1:3.81-20.el6            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 1:3.81-20.el6                                                     

 

 

 

Complete!

bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What software is bonjour and can it be uninstalled? What software is bonjour and can it be uninstalled? Feb 20, 2024 am 09:33 AM

What software is bonjour and can it be uninstalled?

What to do if WPS Office cannot open the PPT file - What to do if WPS Office cannot open the PPT file What to do if WPS Office cannot open the PPT file - What to do if WPS Office cannot open the PPT file Mar 04, 2024 am 11:40 AM

What to do if WPS Office cannot open the PPT file - What to do if WPS Office cannot open the PPT file

What software is crystaldiskmark? -How to use crystaldiskmark? What software is crystaldiskmark? -How to use crystaldiskmark? Mar 18, 2024 pm 02:58 PM

What software is crystaldiskmark? -How to use crystaldiskmark?

CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? Mar 18, 2024 pm 04:50 PM

CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo?

What kind of software is bonjour? Is it useful? What kind of software is bonjour? Is it useful? Feb 22, 2024 pm 08:39 PM

What kind of software is bonjour? Is it useful?

How to resolve an incompatible software attempt to load with Edge? How to resolve an incompatible software attempt to load with Edge? Mar 15, 2024 pm 01:34 PM

How to resolve an incompatible software attempt to load with Edge?

How to set the keyboard increment in Adobe Illustrator CS6 - How to set the keyboard increment in Adobe Illustrator CS6 How to set the keyboard increment in Adobe Illustrator CS6 - How to set the keyboard increment in Adobe Illustrator CS6 Mar 04, 2024 pm 06:04 PM

How to set the keyboard increment in Adobe Illustrator CS6 - How to set the keyboard increment in Adobe Illustrator CS6

How to delete recently opened files in Adobe Reader XI - How to delete recently opened files in Adobe Reader XI How to delete recently opened files in Adobe Reader XI - How to delete recently opened files in Adobe Reader XI Mar 04, 2024 am 11:13 AM

How to delete recently opened files in Adobe Reader XI - How to delete recently opened files in Adobe Reader XI

See all articles