gcc版本过低导致charconv: No such file or directory

您所在的位置:网站首页 gcc版本过低 gcc版本过低导致charconv: No such file or directory

gcc版本过低导致charconv: No such file or directory

2023-03-11 06:11| 来源: 网络整理| 查看: 265

最近在编译MySQL时,出现了以下报错

mysql8/router/src/harness/src/../include/mysql/harness/config_option.h:28:10: fatal error: charconv: No such file or directory #include // from_chars

^~~~~~~~~~

compilation terminated.make[2]: * [router/src/harness/src/CMakeFiles/harness-archive.dir/build.make:122: router/src/harness/src/CMakeFiles/harness-archive.dir/config_option.cc.o] Error 1make: * [Makefile:163: all] Error 2

网上随手翻了一下,没有完美的答案,于是自己分析喽,分析过程我这里就不写了。

最终结论:这是由于当前gcc及g++版本太低导致

解决办法:使用更高级的gcc、g++版本来编译当前包。

那么问题来了,如何升级gcc、g++?

请不要去编译gcc,编译后或许当前问题是解决了,后续你可能会发现更多的问题等着你!!!

如何升级gcc请参考吴昊之前写的文章:

注:激活gcc后,请使用以下命令确认版本生效

gcc --versiong++ --version



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3