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. HDU1020字符串操作

    #include <stdio.h> #include <string.h> int N; int size; void main() { scanf("%d&quo ...

  2. [C++]for同时遍历两个数组

    C++11同时遍历两个数组 #define for2array(x,y,xArray,yArray) \ for(auto x=std::begin(xArray), x##_end=std::end ...

  3. (转载) 利用国内的镜像,加速PIP下载

    国内源: 新版ubuntu要求使用https源,要注意. 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.c ...

  4. 取两个String数组的交集

    import org.testng.annotations.Test; import java.util.HashMap; import java.util.LinkedList; import ja ...

  5. linux 批量删除进程

    2016年11月18日 13:11:10 星期五 ps -ef | grep pname | awk '{print $2}' | xargs kill 解释: 杀掉所有包含 'pname' 的进程

  6. Linux下安装MongoDB

    MongoDB是一个C++编写的基于分布式文件存储的数据库,是一个介于关系和非关系之间的数据库,当然也属于NoSQL的行列,存储方式和Redis类似,是json格式的kav-value存储方式,只是R ...

  7. RecyclerView解密篇(三)

    在上一篇(RecyclerView使用详解(二))文章中介绍了RecyclerView的多Item布局实现,接下来要来讲讲RecyclerView的Cursor实现,相较于之前的实现,Cursor有更 ...

  8. tp5 model 中的查询范围(scope)

    查询范围scope在model中定义,在controller中使用 namespace app\index\model; use think\Model; class User extends Mod ...

  9. USB_HID读写上位机VC++

    在工程属性-->链接器-->添加以下库 open 打开,close 关闭,打开后将获得reader 与writer 的handle,分别进行读写即可 #pragma once #ifdef ...

  10. 接触PHP快4个月

    就要下班了,接触php快4个月,掌握的不好,需要实战,看到自己博客空空的,就mark一下吧!下班了...