CentOS 7安裝MySQL 8.0.13
#!/bin/sh
yum install gcc-c++ ncurses-devel
wget -c -P /opt/tmp/ http://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-8.0/mysql-boost-8.0.13.tar.gz
wget -c -P /opt/tmp/ https://cmake.org/files/v3.12/cmake-3.12.4.tar.gz
wget -c -P /opt/tmp/ http://ftp.gnu.org/gnu/make/make-4.2.tar.gz
wget -c -P /opt/tmp/ https://mirrors.tuna.tsinghua.edu.cn/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz
cd /opt/tmp/
tar zxvf cmake-3.12.4.tar.gz
cd cmake-3.12.4
./bootstrap
gmake
gmake install
cd ../
tar zxvf make-4.2.tar.gz
cd make-4.2
./configure
make
make install
cd ../
rpm -qa|grep make
yum remove make
sed -i '$a export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
source /etc/profile
tar zxvf gcc-8.2.0.tar.gz
cd gcc-8.2.0
./contrib/download_prerequisites
cd gmp-6.1.0
./configure --prefix=/usr/local/gmp
make&&make install
cd ../mpfr-3.1.4
./configure --prefix=/usr/local/mpfr --with-gmp=/usr/local/gmp/
make&&make install
cd ../mpc-1.0.3
./configure --prefix=/usr/local/mpc --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr
make&&make install
sed -i '$a export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc/lib:/usr/local/gmp/lib:/usr/local/mpfr/lib' /etc/profile
source /etc/profile
未完待續