zoukankan      html  css  js  c++  java
  • 【linux】mysql安装问题 g++: not found

    问题现象:
    ../depcomp: line 512: exec: g++: not found
    make[2]: *** [my_new.o] Error 127
    make[2]: Leaving directory `/usr/local/src/mysql-5.0.41/mysys'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/mysql-5.0.41'
    make: *** [all] Error 2
     
    解决办法:
    安装gcc-c++
     
    安装完成之后再次编译make
    可能会出现如下错误:
    ../include/my_global.h:909: error: redeclaration of C++ built-in type `bool'
    make[2]: *** [my_new.o] Error 1
    make[2]: Leaving directory `/home/tools/mysql-5.0.22/mysys'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/tools/mysql-5.0.22'
    make: *** [all] Error 2
    是因为gcc-c++是在configure之后安装的,此时只需重新configure后再编译make即可。
  • 相关阅读:
    CodeForces 587A
    矩阵快速幂模板
    LCA模板
    Codeforces Round #226 (Div. 2 )
    Codeforces Round #225 (Div. 2)
    SGU132
    SRM 599 DIV 2
    POJ1038
    SGU223
    POJ1185
  • 原文地址:https://www.cnblogs.com/tl542475736/p/3630557.html
Copyright © 2011-2022 走看看