VPS侦探论坛

 找回密码
 注册
查看: 3854|回复: 3

gcc8.3.0 cmake3.13.4安装MySQL8.0.16仍然失败

[复制链接]
发表于 2019-4-28 09:02:33 | 显示全部楼层 |阅读模式

一开始我发现我yum install make3并更新软连接后仍然会被脚本yun install cmake所安装的2.8所替代,动手清理了脚本安装cmake的代码后,安装过程中出现了以下问题

Scanning dependencies of target icuuc
[  4%] Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o] Error 1
make[1]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/all] Error 2
make: *** [all] Error 2
[  0%] Built target abi_check
[  0%] Built target INFO_SRC
[  0%] Built target INFO_BIN
[  0%] Built target zlib
[  1%] Built target edit
[  2%] Built target event_core
[  3%] Built target event_extra
[  4%] Built target event
[  4%] Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o] Error 1
make[1]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/all] Error 2
make: *** [all] Error 2
[  0%] Built target abi_check
[  0%] Built target INFO_SRC
[  0%] Built target INFO_BIN
[  0%] Built target zlib
[  1%] Built target edit
[  2%] Built target event_core
[  3%] Built target event_extra
[  4%] Built target event
[  4%] Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o] Error 1
make[1]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/all] Error 2
make: *** [all] Error 2
groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
cp: cannot stat ‘/usr/local/mysql/var/*’: No such file or directory
include/mysql.sh: line 711: /usr/local/mysql/bin/mysqld: No such file or directory
ldconfig: /usr/lib64/libstdc++.so.6.0.25-gdb.py is not an ELF file - it has the wrong magic bytes at the start.


ldconfig: /usr/lib64/libstdc++.so.6 is not a symbolic link


mysql.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig mysql on
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 50: /usr/local/mysql/bin/mysqladmin: No such file or directory
failed, try other way...
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 63: /usr/local/mysql/bin/mysql: No such file or directory
Set password failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
Update root password...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove anonymous users...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
Clean database src directory...

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-4-28 11:00:06 | 显示全部楼层


ldconfig: /usr/lib64/libstdc++.so.6.0.25-gdb.py is not an ELF file - it has the wrong magic bytes at the start.


ldconfig: /usr/lib64/libstdc++.so.6 is not a symbolic link

你发的错误信息里是gcc有问题,应该是你编译安装gcc的问题,建议通过 https://www.vpser.net/manage/centos-6-upgrade-gcc.html 这个方法

PS: centos 6、7升级cmake3方法参考:https://www.vpser.net/manage/centos-rhel-linux-third-party-source-epel.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-4-28 09:52:08 | 显示全部楼层

我都是编译安装的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-4-28 13:10:02 | 显示全部楼层



licess 发表于 2019-4-28 11:00
你发的错误信息里是gcc有问题,应该是你编译安装gcc的问题,建议通过 https://www.vpser.net/manage/cento ...

嗯,解决了,编译安装这种大项目处理依赖关系和修改配置是真的蛋疼
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 07:37 , Processed in 0.027370 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表