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. [Machine Learning] 梯度下降法的三种形式BGD、SGD以及MBGD

    在应用机器学习算法时,我们通常采用梯度下降法来对采用的算法进行训练.其实,常用的梯度下降法还具体包含有三种不同的形式,它们也各自有着不同的优缺点. 下面我们以线性回归算法来对三种梯度下降法进行比较. ...

  2. 如何使用FileZilla上传和下载文件

    一.使用FileZilla上传文件 1 打开 FileZilla 按照如下图所示,填写远程 Linux 的 IP ,用户名,密码,还有端口号(默认22) 2 选中左边需要上传的文件,然后拖到右边,等待 ...

  3. PHP代码 如何网页获取用户的openid

    public function getOpenid($appid, $appsecret) { $SERVER_NAME = $_SERVER['SERVER_NAME']; $REQUEST_URI ...

  4. ORA-01033 ORACLE 正在初始化或关闭

    (借鉴:该方法本人亲自操作过,解决了问题!) 解决连接ORACLE错误一例:ORA-01033: ORACLE 正在初始化或关闭 客户发现连接数据库有问题,错误有: ORA-01033: ORACLE ...

  5. 疯狂了!当游戏爱上MongoDB会怎么样???

    导读 前端时间魔兽这个电影我相信大家都看过了哈,作为一个码农,有时候我也会去思考魔兽世界这个游戏背后他的一些设计和实现,比如他用什么数据库.当然真正用什么数据库这个我是不确定的,我们今天的主题是当游戏 ...

  6. Java Native Interface 四--JNI中引用类型

    本文是<The Java Native Interface Programmer's Guide and Specification>读书笔记 JNI支持将类实例和数组类型(如jobjec ...

  7. 数组中的每一个对象执行一次方法:makeObjectsPerformSelector

    1,  为数组中的每一个button添加点击事件: [_buttonArray makeObjectsPerformSelector:@selector(addTarget:self action:( ...

  8. 理解 Delphi 的类(八) - 关于类的定义

      //标准语法   TMyClass1 = class(TObject)   end;   //如果是继承自 TObject 可以省略   TMyClass2 = class   end;   // ...

  9. Python flask 基于 Flask 提供 RESTful Web 服务

    转载自 http://python.jobbole.com/87118/ 什么是 REST REST 全称是 Representational State Transfer,翻译成中文是『表现层状态转 ...

  10. Merge K Sorted Arrays

    This problem can be solved by using a heap. The time is O(nlog(n)). Given m arrays, the minimum elem ...