安装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!
再执行./configure成功了。出现如下信息(部分):
-- Check size of wctype_t - done
-- Check size of wint_t
-- Check size of wint_t - done
-- Found Curses: /usr/lib/libcurses.so
-- Looking for tputs in /usr/lib/libcurses.so
-- Looking for tputs in /usr/lib/libcurses.so - found
-- Looking for include files HAVE_LIBAIO_H
-- Looking for include files HAVE_LIBAIO_H - not found.
-- Looking for io_queue_init in aio
-- Looking for io_queue_init in aio - not found
-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS - Success
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC
-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC - Success
-- Check size of pthread_t
-- Check size of pthread_t - done
-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Success
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /root/mysql/mysql-5.5.25a
第二种:如果用源码形式安装会出现如下错误:
[root@localhost mysql]# cd cmake-2.8.10.1
[root@localhost cmake-2.8.10.1]# ./configure
---------------------------------------------
CMake 2.8.10.1, Copyright 2000-2012 Kitware, Inc.
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.
---------------------------------------------
Log of errors: /root/mysql/cmake-2.8.10.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
它在这里直接提示缺少make 环境。
[root@localhost cmake-2.8.10.1]# 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]:
这回在安装mysql时,就可以了。
总结一下,两种不同方法安装cmake时,提示错误位置不同。可能这些只与我的系统有关,可能是新系统,好多软件均未安装,在些做下笔记,方便以后有朋友遇到此种问题时,方便查阅。
转载于:https://blog.51cto.com/whlai51/1126079
安装mysql5.5时常见错误--缺失make相关推荐
- PHP编译安装时常见错误解决办法,php编译常见错误
PHP编译安装时常见错误解决办法,php编译常见错误 1.configure: error: xslt-config not found. Please reinstall the libxslt & ...
- linux libvpx编译安装,linux编译安装时常见错误解决办法
**configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution** 复 ...
- linux编译安装的报错,linux编译安装时常见错误解决办法
This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html ...
- Java的知识点6—— 强制类型转换、基本类型转化时常见错误和问题、 简单的键盘输入和输出
强制类型转换 强制类型转换,又被称为造型,用于显式的转换一个数值的类型.在有可能丢失信息的情况下进行的转换是通过造型来完成的,但可能造成精度降低或溢出. public class Test2 {pu ...
- 安装vs2008中文时出现错误Write error in the file
安装vs2008中文时出现错误Write error in the file VS2008TeamSuite90DayTrialCHSX1429243.iso. Probably the disk i ...
- cad安装日志文件发生错误_安装软件提示“打开安装日志文件时发生错误”解决办法...
最近有朋友在安装loadrunner时发生报错,windows installer报错:打开安装日志文件时发生错误.请检查指定的日志文件位置是否存在并且可以写入. 造成报错的原因就是他之前安装过一次l ...
- ubuntu 16.04极速安装ROS-Kinetic,以及常见错误处理
ubuntu 16.04极速安装ROS-Kinetic,以及常见错误处理 首先给恭喜你,看到了这篇文章,这意味着你已经成功一大半了. 希望大家提前完成linux系统的安装.网上的linux系统安装的教 ...
- sql无法写入mysql_安装sql2008R2数据库时提示错误1406,安装程序无法将值写入注册表项?...
摘要: 安装sql2008R2数据库时提示错误1406,安装程序无法将值写入注册表项 \software\classes\msolapadmin2.msolapsources.1.怎么解决呢? 这个问 ...
- 安装MySQL5.7时卡在starting server。the configuration step starting server is taking longer than expected
在安装MySQL5.7时卡在starting server. 如何卸载? 1.进入控制面板删除与MySQL相关的程序 2.删除C:\ProgramData\MySQL文件,并检查C:\Program ...
最新文章
- AutoX江苏超级工厂首曝光!机械臂随处可见,车辆出厂就能完全无人驾驶
- python简单代码加法-CPython 源码中整数加法的实现
- Database之SQL:自定义创建数据库的各种表demo集合(以方便理解和分析sql的各种增删改查语法的具体用法)
- java报错误设置属性值_java – 设置属性值时出错;嵌套异常是org.springframework.beans.NotWritablePropertyException:...
- 数据库设计注意事项和原则
- LINUX - /etc/init.d/nginx: line 51: kill: (29833) - No such process
- Spring系统学习:20180612--aop配置中表达式的写法
- yii2基础之分页的基本使用及其配置详解
- 期刊论文分析的技巧与程序
- macd的python代码同花顺_MACD最全的运用方法!
- ppt压缩文件怎么压缩?
- html表格可视化设计器,基于vue-element-ui的一款表格设计器table-making
- 网络通信安全基础和OpenSSL
- 北京计算机信息学院,北京信息科技大学计算机学院
- 用于高速网络的实时且可靠的基于异常的入侵检测
- 如何优雅的写C++代码 Obotcha介绍(字符串转uint8_t)
- thinkphp6 jwt扩展
- HTML5期末大作业:运动系列——NBA篮球主题学生网页设计(7个页面) HTML+CSS+JavaScript 体育网页设计HTML代码 学生网页课程设计期末作业下载 大学生网页设计制作成
- 【luogu P2455 [SDOI2006]线性方程组】 题解
- 大学计算机作业互评评语简短,【同学互评评语100字】同学作业互评评语(2).doc...