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!!!!! ...
随机推荐
- Java文件操作
1.通过File类中的createNewFile()创建一个新的文件 /** * 测试创建文件 * @throws IOException */ @Test pub ...
- JQuery+Ajax+Struts2+Hibernate 实现完整的登录注册
写在最前: 下午有招聘会,不想去,总觉得没有准备好,而且都是一些不对口的公司,可是又静不下心来,就来写个博客. 最近在仿造一个书城的网站:http://www.yousuu.com ,UI直接拿来用, ...
- HTML5 canvas学习笔记(一)
canvas是HTML5中新增的标签,下面是各浏览器的支持程度: canvas的默认大小为:宽-300px,高-150px(注意:画布的大小作为canvas标签的行内样式设置,而且是没有“px”单位的 ...
- UI第十七节——UIScrollView
// 实例化一个ScrollView UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen main ...
- 简单的C语言文法
<程序>→<外部声明>|<程序><外部声明> <外部声明>→<函数定义>|<声明> <函数定义>→< ...
- web自动化工具-Browsersync
web自动化工具-Browsersync browser-sync才是神器中的神器,和livereload一样支持监听所有文件.可是和livereload简单粗暴的F5刷新相比,browsersync ...
- Owin Self Host
http://owin.org/ Owin 定义了webserver和webapplication之间的标准接口,目标就是为了解耦webapplication对webserver的依赖, 就是说以后可 ...
- raspbian调整分辨率
参考 https://www.raspberrypi.org/documentation/configuration/config-txt.md 设置示例,设置成800*600 tvservice - ...
- 设计模式--组合模式Composite(结构型)
一.概念 组合模式允许你将对象组合成树形结构来表现"整体/部分"层次结构.组合能让客户以一致的方式处理个别对象以及对象组合. 二.UML图 1.Component(对象接口),定义 ...
- grep-2.26 sed-4.2.2 awk-4.1.4 wget-1.18 pcregrep-8.39 pcre2grep-10.22 for windows 最新版本静态编译
-------------------------------------------------------------------------------------------- grep (G ...