• mysql 3.2.49 源代码安装-redhat 5 x64


    [mysql@localhost ~]$ uname -r
    2.6.32

    [root@localhost ~]#cp /usr/include/pthread.h /usr/include/pthread.h.bak
    [root@localhost ~]#echo '/* Linuxthreads */' >> /usr/include/pthread.h

    解决

    checking for int8... no checking "LinuxThreads"... "Not found" configure: error: This is a linux system and Linuxthreads was not found. On linux Linuxthreads should be used.  Please install Linuxthreads (or a new glibc) and try again.  See the Installation chapter in the Reference Manual for more information.

    原因:新内核使用了NTPL这种先进的线程处理方式,

    [root@localhost ~]#tar   -zxvf  libtool-1.4.1.tar.gz

    ./configure &&make$$make install

    [root@localhost ~]#tar   -zxvf  mysql-3.23.49.tar.gz

    [root@localhost ~]# cd mysql-3.23.49

    [root@localhost mysql-3.23.49]#CFLAGS="-O0 -mpentiumpro" CXXFLAGS="-O0 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-innodb --with-debug

    不指明 CXX=gcc  ,否则在在MAKE时出错

    [root@localhost mysql-3.23.49]# cp /usr/local/bin/libtool .

    替换当前目录版本

    顺序不能倒

    [root@localhost mysql-3.23.49]#make

    [root@localhost mysql-3.23.49]#make install

    mysql 服务目录

    [mysql@localhost libexec]$ pwd
    /usr/local/mysql/libexec

    [mysql@localhost libexec]$ ls
    mysqld

    mysql 客户端目录

    [mysql@localhost bin]$ ls
    comp_err           mysqlbug                    mysql_setpermission
    isamchk            mysqlcheck                  mysqlshow
    isamlog            mysql_config                mysqltest
    msql2mysql         mysql_convert_table_format  mysql_zap
    myisamchk          mysqld_multi                pack_isam
    myisamlog          mysqldump                   perror
    myisampack         mysqldumpslow               replace
    my_print_defaults  mysql_find_rows             resolveip
    mysql              mysql_fix_privilege_tables  resolve_stack_dump
    mysqlaccess        mysqlhotcopy                safe_mysqld
    mysqladmin         mysqlimport
    mysqlbinlog        mysql_install_db
    [mysql@localhost bin]$ pwd
    /usr/local/mysql/bin

                            

  • 相关阅读:
    Lock和synchronized的区别和使用(转发)
    redis集群配置
    分布式之redis(转发)
    拉格朗日乘法与KKT条件
    骨骼动画原理
    常用非线性优化算法总结
    广义线性回归模型(三)
    线性模型、最优化方法(二)
    矩阵微分基础(一)
    OpenGL坐标系统
  • 原文地址:https://www.cnblogs.com/zengkefu/p/4946644.html
Copyright © 2020-2023  润新知