已解决
发布

 
mySQL 5.7.16源码安装失败:
..failed updating 56 targets…
…skipped 6 targets…
…updated 11813 targets…
~/oneinstack/src ~/oneinstack
Boost installed successfully!
~/oneinstack
~/oneinstack/src ~/oneinstack
tar: mysql-5.7.16.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
include/mysql-5.7.sh: line 31: pushd: mysql-5.7.16: No such file or directory
CMake Error: The source directory “/root/oneinstack/src” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install’. Stop.
~/oneinstack
MySQL install failed, Please contact the author!
Killed
/bin/cp: cannot stat ‘/usr/local/mysql/support-files/mysql.server’: No such file or directory
sed: can’t read /etc/init.d/mysqld: No such file or directory
sed: can’t read /etc/init.d/mysqld: No such file or directory
chmod: cannot access ‘/etc/init.d/mysqld’: No such file or directory
[root@iZ23mqu1qayZ oneinstack]# error reading information on service mysqld: No such file or directory
error reading information on service mysqld: No such file or directory
include/mysql-5.7.sh: line 79: popd: directory stack empty
include/mysql-5.7.sh: line 212: /usr/local/mysql/bin/mysqld: No such file or directory
Redirecting to /bin/systemctl start mysqld.service
Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.
include/mysql-5.7.sh: line 221: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.7.sh: line 222: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.7.sh: line 223: /usr/local/mysql/bin/mysql: No such file or directory
Redirecting to /bin/systemctl stop mysqld.service
Failed to stop mysqld.service: Unit mysqld.service not loaded.
 
 
 
 
 

1 答案

发布
管理员 2016-10-17

mysql-5.7源码没有下载成功,手工下载试试,(PS:建议二进制安装
cd oneinstack/src
wget -c https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-5.7/mysql-5.7.16.tar.gz
 

#1

请登录或者 注册 来提交答案