gcc8.3.0 cmake3.13.4安装MySQL8.0.16仍然失败
一开始我发现我yum install make3并更新软连接后仍然会被脚本yun install cmake所安装的2.8所替代,动手清理了脚本安装cmake的代码后,安装过程中出现了以下问题Scanning dependencies of target icuuc
Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make: *** Error 1
make: *** Error 2
make: *** Error 2
Built target abi_check
Built target INFO_SRC
Built target INFO_BIN
Built target zlib
Built target edit
Built target event_core
Built target event_extra
Built target event
Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make: *** Error 1
make: *** Error 2
make: *** Error 2
Built target abi_check
Built target INFO_SRC
Built target INFO_BIN
Built target zlib
Built target edit
Built target event_core
Built target event_extra
Built target event
Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make: *** Error 1
make: *** Error 2
make: *** 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...
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
我都是编译安装的 licess 发表于 2019-4-28 11:00
你发的错误信息里是gcc有问题,应该是你编译安装gcc的问题,建议通过 https://www.vpser.net/manage/cento ...
嗯,解决了,编译安装这种大项目处理依赖关系和修改配置是真的蛋疼:L
页:
[1]