zoukankan      html  css  js  c++  java
  • 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

                            

  • 相关阅读:
    2020年北航OO助教工作总结
    OO第四单元——UML及其解析器——总结 暨 OO课程大总结
    OO第三单元——规格化设计与地铁系统——总结
    OO第二单元——电梯调度——总结
    OO第一单元——表达式求导——总结
    try_svg
    字体自适应
    网站使用微软雅黑需要版权吗
    body,td,th {
    input一定要在from里吗
  • 原文地址:https://www.cnblogs.com/zengkefu/p/4946644.html
Copyright © 2011-2022 走看看