1.Linux中安装LNMP过程
- 第一步安装mysql过程
- 安装包mysql-5.0.22.tar.gz,解压tar -zxvf mysql-5.0.22.tar.gz
- cd mysql-5.0.22
- 进行源码安装./configure --prefix=/usr/local/mysql
- 提示如下错误:
- configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
- configure: error: no acceptable C compiler found in $PATH
- 缺少gcc包,安装gcc:yum -y install gcc
- 再次源码安装mysql:./configure --prefix=/usr/local/mysql
- 提示:
- checking for termcap functions library... configure: error: No curses/termcap library found
- 缺少curses包:进行安装 yum -y install ncurses-devel
- 再次源码安装mysql:./configure --prefix=/usr/local/mysql
- 提示:Thank you for choosing MySQL!
- 进行编译:make && make install
- 提示:
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/mysql-5.0.22/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/mysql-5.0.22'
make: *** [all] 错误 2 - 缺少c++包:yum install -y gcc-c++
- 进行:make clean 再次:make && make install
- 提示:
../depcomp: line 99: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/mysql-5.0.22/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/mysql-5.0.22'
make: *** [all] 错误 2 - cd .. 删除mysql-5.0.22:rm -rf mysql-5.0.22
- 重新解压mysql-5.0.22.tar.gz: tar -zxvf mysql-5.0.22.tar.gz
- cd mysql-5.0.22,再次:./configure --prefix=/usr/local/mysql
- 进行编译:make && make install
- 提示:
make[4]: Nothing to be done for `install-data-am'.
make[4]: 警告:检测到时钟错误。您的创建可能是不完整的。
make[4]: Leaving directory `/tmp/mysql-5.0.22/server-tools/instance-manager'
make[3]: 警告:检测到时钟错误。您的创建可能是不完整的。
make[3]: Leaving directory `/tmp/mysql-5.0.22/server-tools/instance-manager'
make[3]: Entering directory `/tmp/mysql-5.0.22/server-tools'
make[4]: Entering directory `/tmp/mysql-5.0.22/server-tools'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/tmp/mysql-5.0.22/server-tools'
make[3]: Leaving directory `/tmp/mysql-5.0.22/server-tools'
make[2]: Leaving directory `/tmp/mysql-5.0.22/server-tools'
make[1]: Leaving directory `/tmp/mysql-5.0.22' - 检查时间:2015年 11月 14日 星期六 23:25:23 CST
- 修改时间:
[root@localhost tmp]# date -s 2016/09/19
2016年 09月 19日 星期一 00:00:00 CST
[root@localhost tmp]# date -s 22:01:11
2016年 09月 19日 星期一 22:01:11 CST - 再次:./configure --prefix=/usr/local/mysql
- 然后:make && make install
1.Linux中安装LNMP过程的更多相关文章
- 在Linux下安装PHP过程中,编译时出现错误的解决办法
在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法 configure: error: libjpeg.(a ...
- FFmpeg在Linux下安装编译过程
转载请把头部出处链接和尾部二维码一起转载,本文出自:http://blog.csdn.net/hejjunlin/article/details/52402759 今天介绍下FFmpeg在Linux下 ...
- 在Linux中安装JDK和IDEA
前言 寒假安装虚拟机的时候我就没有安装好,到学校之后,因为时间紧加上更习惯Windows的操作习惯,我只在Windows上安装了JDK和IDEA,但是随着学习的深入,我发现用虚拟机写命令行.新建jav ...
- 在Linux中安装和配置OpenVPN Server的最简便方法!
本文介绍了如何在基于RPM和DEB的系统中安装和配置OpenVPN服务器.我们在本文中将使用一个名为openvpn-install的脚本,它使整个OpenVPN服务器的安装和配置过程实现了自动化.该脚 ...
- 在Linux中安装MariaDB并添加远程访问
在Linux中安装MariaDB并添加远程访问 最近学习到了数据库部分,因为有一台台式机一台笔记本换着用,就没有把数据库安装在本机,本来打算用之前买的虚拟空间的数据库的,结果速度太慢用起来太难受了,就 ...
- Linux中安装字体
Linux中安装字体 查看系统中的字体 fc-list 查看系统中的中文字体 fc-list :lang=zh将然后将字体文件拷贝到/usr/share/fonts/中 cp aa.ttl /usr/ ...
- Linux中安装C++编译器codeBlock,并配置opencv链接库
1.Linux中安装codeBlock https://blog.csdn.net/xinyunyishui/article/details/50967395 2.CodeBlock中的中文显示不完全 ...
- Linux中安装nodejs及插件
Linux中安装nodejs及插件 1.去官网下载安装包 英文网址:https://nodejs.org/en/download/ 中文网址:http://nodejs.cn/download/ 通过 ...
- Linux中安装python3.6和第三方库
Linux中安装python3.6和第三方库 如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境,比如yum!!!!! ...
随机推荐
- 每天写点python
1.收集系统信息python小程序 1 #!/usr/bin/env python 2 #A system information gathering script 3 4 import subpro ...
- 03 Yarn 原理介绍
Yarn 原理介绍 大纲: Hadoop 架构介绍 YARN 产生的背景 YARN 基础架构及原理 Hadoop的1.X架构的介绍 在1.x中的NameNodes只可能有一个,虽然可以通过Se ...
- 【Java】正则表达式
正则表达式是做什么的? 正则表达式可用在处理字符串,满足查找符合某些复杂规则的字符串的需要.简言之,正则表达式是记录文本规则的代码. 上图~
- CSS实现可变行数垂直居中
<html> <head> <style> .vcenter { position: relative; height: 100%; width:50px; } . ...
- 关于JS事件的几点总结
1.理解事件(2点) 事件行为本身:没有给事件绑定方法事件也是一直存在的,当触发行为的时候,也对触发对应的行为,只不过由于没有绑定事件,导致没有任何事件发生: 事件绑定:给元素绑定一个方法:触发行为, ...
- JS学习:第二周——NO.3盒子模型
1.CSS盒子模型包括四个部分组成:设定的宽高+padding+border+margin: 2.JS盒子模型:通过系统提供的属性和方法,来获取当前元素的样式值 JS提供的属性和方法: clien ...
- Android Duplicate files copied in APK
今天调试 Android 应用遇到这么个问题: Duplicate files copied in APK META-INF/DEPENDENCIES File 1: httpmime-4.3.2.j ...
- 10分钟了解设计模式(C#)
最近把<大话设计模式>重温了下(看完序才知道原来作者是也是博客园园友,这本书的最早博客版本在这里).体会最深的就是面向接口编程的重要性,如何在自己的项目中进行抽象,合理的利用各种设计模式. ...
- MMAP和DIRECT IO区别
看完此文,题目不言自明.转自 http://blog.chinaunix.net/uid-27105712-id-3270102.html 在Linux 开发中,有几个关系到性能的东西,技术人员非常关 ...
- Apple Pay 初探
Apple Pay 一.概述 1.支付方式:Touch ID/ Passcode 2.设备要求:iPhone6以上(iphone:线上/线下 ipad:线上 watch:线下) 3.系统要求:iOS8 ...