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

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
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
telegram是什么软件telegram是什么软件Jul 07, 2022 pm 05:05 PM

Telegram是一款跨平台的即时通讯软件,用户可以相互交换加密与自毁消息,发送照片、影片等所有类型文件;Telegram有加密聊天的功能,使用这种功能,聊天双方的内容完全保密,不会担心被监控或被第三方偷窥。官方提供Android、iOS、Windows、macOS、Linux和网页版等多种平台客户端;同时官方开放应用程序接口,有许多第三方的客户端可供选择 。

armoury crate是什么软件armoury crate是什么软件Jul 18, 2022 pm 03:52 PM

armoury crate是一款简易实用,功能全面的华硕系统控制软件;通过Armoury Crate平台,可以启动主页面上的系统性能模式调整、设置相关应用软件、获取系统信息,当机器连接支持的外设时,也可以使用Armoury Crate中所整合的Lighting、AURA Sync功能进行各种灯光特效的设定。

xrkit是什么软件xrkit是什么软件Jul 18, 2022 pm 03:13 PM

XRKit是为华为手机场景提供场景化、组件化的AR解决方案的框架软件,也就为华为相机,提供了虚拟模型在真实世界中的呈现。XRKit软件支持AR SDK,能与Unity3D引擎兼容,包括PTC Vuforia,ARKit,ARCore等。为AR呈现能力、人脸特效、光影特效;它属于华为XR生态的基础性软件。

推特是什么软件推特是什么软件Jul 13, 2022 am 11:07 AM

推特(Twitter)是一个社交网络及微博客服务软件,是一家美国的公司;Twitter利用无线网络、有线网络、通信技术进行即时通讯,是微博客的典型应用,允许用户将自己的最新动态和想法以短信息的形式发送给手机和个性化网站群。

glance by mirametrix是什么软件glance by mirametrix是什么软件Jul 28, 2022 am 10:59 AM

glance by mirametrix是一款眼球追踪软件;glance是由Mirametrix开发的应用程序,软件配合红外摄像头可识别用户脸和眼睛的方向,其中主要包括了状态检测、智能指针和窗口分屏三个功能。

ldplayer是什么软件ldplayer是什么软件Aug 02, 2022 pm 02:59 PM

ldplayer是一款多功能Android操作系统的模拟器,通过它可以直接在PC上运行Android智能手机游戏,是将家用PC或笔记本电脑转变为运行移动软件的游戏机的方法;ldplayer可以用来进行联网,用户可以和其他人一起开启联机对战。

rav endpoint protection是什么软件rav endpoint protection是什么软件Aug 11, 2022 pm 04:06 PM

rav endpoint protection是瑞星杀毒软件;RAV是“RisingAnti-virus”的缩写,是瑞星反病毒软件的意思,瑞星杀毒软件采用获得欧盟及中国专利的六项核心技术,形成全新软件内核代码,具有八大绝技和多种应用特性。

commercial service是什么软件commercial service是什么软件Aug 11, 2022 pm 04:17 PM

commercial service指的是商业服务软件;该软件主要为提供产品维修、系统升级、检测换机以及产品咨询等服务,服务的产品包括手机、电视、手表、耳机以及其他配件。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools