作者:SOCHUNGKWAN | 来源:互联网 | 2023-10-12 23:33
部分Linux在安装Mysql数据库时,需要用到cmake命令,可以参考https:blog.csdn.netqq_38118019articledetails80207918进行安装
部分Linux在安装Mysql数据库时,需要用到cmake命令,可以参考https://blog.csdn.net/qq_38118019/article/details/80207918进行安装
相关下载链接:
//download.csdn.net/download/qq_38118019/10394513?utm_source=bbsseo
1 个解决方案
大侠编译mysql8.0.11 没有报错吗,我编译报错,官方源码未改动过
Linking CXX executable ../runtime_output_directory/mysqld
[100%] [100%] [100%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/__/__/__/mysys/my_string.cc.o
Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/pfs_connect_attr-t.cc.o
Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/__/__/__/sql/sql_builtin.cc.o
Linking CXX executable ../../../runtime_output_directory/pfs_connect_attr-t
../../../archive_output_directory/libtemptable.a(handler.cc.o): In function `temptable::Handler::delete_table(char const*, dd::Table const*)':
/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: undefined reference to `_ZTHN9temptable6tablesE'
/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: undefined reference to `_ZTHN9temptable6tablesE'
/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: undefined reference to `_ZTHN9temptable6tablesE'
../../../archive_output_directory/libtemptable.a(handler.cc.o): In function `temptable::Handler::open(char const*, int, unsigned int, dd::Table const*)':
/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: undefined reference to `_ZTHN9temptable6tablesE'
/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: undefined reference to `_ZTHN9temptable6tablesE'
../../../archive_output_directory/libtemptable.a(handler.cc.o):/data/soft/mysql804/mysql-8.0.4-rc/sql/table.h:3427: more undefined references to `_ZTHN9temptable6tablesE' follow
collect2: 错误:ld 返回 1
make[2]: *** [runtime_output_directory/pfs_connect_attr-t] 错误 1
make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] 错误 2