zoukankan      html  css  js  c++  java
  • CentOS 7 重装mysql编译过程报错解决方法

    错误记录:

    [ 82%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1902: error: ‘cli_list_fields’ undeclare d here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1903: error: ‘cli_read_prepare_result’ u ndeclared here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1904: error: ‘cli_stmt_execute’ undeclar ed here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1905: error: ‘cli_read_binary_rows’ unde clared here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1906: error: ‘cli_unbuffered_fetch’ unde clared here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c:1908: error: ‘cli_read_statistics’ undec lared here (not in a function)
    /usr/local/src/mysql-5.6.30/sql-common/client.c: In function ‘cli_read_query_result’:
    /usr/local/src/mysql-5.6.30/sql-common/client.c:4113: warning: implicit declaration of f unction ‘handle_local_infile’
    make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o] Error 1
    make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2
    make: *** [all] Error 2

    解决方法:
    删掉旧的已编译过的安装包
    # /bin/rm -rf mysql-5.6.30
    重新解压源码安装包
    # tar xvf mysql-5.6.30.tar.gz
    # cd mysql-5.6.30
    # mkdir build
    # cd build
    # cmake .. -DCMAKE_INSTALL_PREFIX=/data/mysql/ -DMYSQL_TCP_PORT=3306 -DEXTRA_CHARSETS=complex -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAMMRG_STORAGE_ENGINE=1 -DENABLE_DTRACE=OFF
    # make
    # make install

  • 相关阅读:
    Win10家庭版无法远程桌面连接的解决方法
    分分钟用上C#中的委托和事件之窗体篇
    分分钟用上C#中的委托和事件
    Fiddler工具使用介绍三
    Fiddler工具使用介绍二
    Fiddler工具使用介绍一
    Hexo主题开发
    IDEA 编译 Jmeter 4.0 ( 二次开发_1 )
    Pinpoint 安装部署
    接口测试总结
  • 原文地址:https://www.cnblogs.com/fjping0606/p/5842764.html
Copyright © 2011-2022 走看看