1. 第一步安装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.

    • 缺少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过程的更多相关文章

  1. 在Linux下安装PHP过程中,编译时出现错误的解决办法

    在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法 configure: error: libjpeg.(a ...

  2. FFmpeg在Linux下安装编译过程

    转载请把头部出处链接和尾部二维码一起转载,本文出自:http://blog.csdn.net/hejjunlin/article/details/52402759 今天介绍下FFmpeg在Linux下 ...

  3. 在Linux中安装JDK和IDEA

    前言 寒假安装虚拟机的时候我就没有安装好,到学校之后,因为时间紧加上更习惯Windows的操作习惯,我只在Windows上安装了JDK和IDEA,但是随着学习的深入,我发现用虚拟机写命令行.新建jav ...

  4. 在Linux中安装和配置OpenVPN Server的最简便方法!

    本文介绍了如何在基于RPM和DEB的系统中安装和配置OpenVPN服务器.我们在本文中将使用一个名为openvpn-install的脚本,它使整个OpenVPN服务器的安装和配置过程实现了自动化.该脚 ...

  5. 在Linux中安装MariaDB并添加远程访问

    在Linux中安装MariaDB并添加远程访问 最近学习到了数据库部分,因为有一台台式机一台笔记本换着用,就没有把数据库安装在本机,本来打算用之前买的虚拟空间的数据库的,结果速度太慢用起来太难受了,就 ...

  6. Linux中安装字体

    Linux中安装字体 查看系统中的字体 fc-list 查看系统中的中文字体 fc-list :lang=zh将然后将字体文件拷贝到/usr/share/fonts/中 cp aa.ttl /usr/ ...

  7. Linux中安装C++编译器codeBlock,并配置opencv链接库

    1.Linux中安装codeBlock https://blog.csdn.net/xinyunyishui/article/details/50967395 2.CodeBlock中的中文显示不完全 ...

  8. Linux中安装nodejs及插件

    Linux中安装nodejs及插件 1.去官网下载安装包 英文网址:https://nodejs.org/en/download/ 中文网址:http://nodejs.cn/download/ 通过 ...

  9. Linux中安装python3.6和第三方库

    Linux中安装python3.6和第三方库 如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境,比如yum!!!!! ...

随机推荐

  1. SQLServer日期函数用法

    --1.显示本月第一天 ,) ),)) --2.显示本月最后一天 ,),,))) ,,,)) --3.上个月的最后一天 ,,)) --4.本月的第一个星期一 , ) --5.本年的第一天 ,) --6 ...

  2. Linux htop工具使用详解

    一.Htop的使用简介 大家可能对top监控软件比较熟悉,今天我为大家介绍另外一个监控软件Htop,姑且称之为top的增强版,相比top其有着很多自身的优势.如下: 两者相比起来,top比较繁琐 默认 ...

  3. 使用python+xpath 获取https://pypi.python.org/pypi/lxml/2.3/的下载链接

    使用python+xpath 获取https://pypi.python.org/pypi/lxml/2.3/的下载链接: 使用requests获取html后,分析html中的标签发现所需要的链接在& ...

  4. git用法之常用命令[克隆、提交]

    1.克隆/下载项目 1)git clone git@git.soydai.cn:liuxuewen/static-file-3.0.git 或者 2)git clone http://git.soyd ...

  5. 由表单验证说起,关于在C#中尝试链式编程的实践

    在web开发中必不可少的会遇到表单验证的问题,为避免数据在写入到数据库时出现异常,一般比较安全的做法是前端会先做一次验证,通过后把数据提交到后端再验证一次,因为仅仅靠前端验证是不安全的,有太多的htt ...

  6. PHPSTORM设置新建PHP文件头部注释

    1.选择 File|setting 2.在Editor|File and Code Templates,见下图标记更改即可

  7. DevExpress 关于alertControl 图片显示

    private void button1_Click(object sender, EventArgs e) { AlertInfo info = new AlertInfo("Captio ...

  8. Apache 服务器搭建 总结

    安装素材准备:<1>下载jdk <2>下载apache2.0.55 <3>下载tomcat5.5 <4>下载jk(mod_jk-apache-2.0.5 ...

  9. JSP页面JSTL提供的函数标签EL表达式操作字符串的方法

    首先在jsp页面导入标签<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions&quo ...

  10. 怎么写makefile?(转)

    跟我一起写 Makefile 陈皓 第一章.概述 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和 pr ...