Board logo

标题: [求助] 升级mysql5.7.13错误 求帮助 怎么升级啊 [打印本页]

作者: lonhowe    时间: 2016-6-9 12:40     标题: 升级mysql5.7.13错误 求帮助 怎么升级啊

本帖最后由 lonhowe 于 2016-6-23 05:11 编辑

mysql-5.7.12/zlib/zlib.h
mysql-5.7.12/zlib/zutil.c
mysql-5.7.12/zlib/zutil.h
mysql-5.7.12/INSTALL-SOURCE
START CONFIGURING MYSQL
make: *** No rule to make target `clean'.  Stop.
-- Running cmake version 2.8.11
-- Found Git: /usr/bin/git (found version "1.8.3.1")
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for SHM_HUGETLB
-- Looking for SHM_HUGETLB - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void *
-- Check size of void * - done
-- SIZEOF_VOIDP 8
-- MySQL 5.7.12
-- Packaging as: mysql-5.7.12-Linux-x86_64
-- Looked for boost/version.hpp in  and
-- BOOST_INCLUDE_DIR BOOST_INCLUDE_DIR-NOTFOUND
-- LOCAL_BOOST_DIR
-- LOCAL_BOOST_ZIP
-- Could not find (the correct version of) boost.
-- MySQL currently requires boost_1_59_0

CMake Error at cmake/boost.cmake:81 (MESSAGE):
  You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>

  This CMake script will look for boost in <directory>.  If it is not there,
  it will download and unpack it (in that directory) for you.

  If you are inside a firewall, you may need to use an http proxy:

  export http_proxy=http://example.com:80

Call Stack (most recent call first):
  cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:451 (INCLUDE)


-- Configuring incomplete, errors occurred!
NO! CONFIGURE ERROR! TRY AGAIN OR ASK IN THE BBS!


搞不好啦 求助
作者: lonhowe    时间: 2016-6-20 17:54

求老大帮忙啊
作者: admin    时间: 2016-6-20 22:53

删除,重新下载安装
作者: lonhowe    时间: 2016-6-23 05:11

回复 3# admin


    老大 还是不行


START CONFIGURING MYSQL
make: *** No rule to make target `clean'.  Stop.
-- Running cmake version 2.8.10.2
-- Configuring with MAX_INDEXES = 64U
-- SIZEOF_VOIDP 8
-- MySQL 5.7.13
-- Packaging as: mysql-5.7.13-Linux-x86_64
-- Looked for boost/version.hpp in  and
-- BOOST_INCLUDE_DIR BOOST_INCLUDE_DIR-NOTFOUND
-- LOCAL_BOOST_DIR
-- LOCAL_BOOST_ZIP
-- Could not find (the correct version of) boost.
-- MySQL currently requires boost_1_59_0

CMake Error at cmake/boost.cmake:81 (MESSAGE):
  You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>

  This CMake script will look for boost in <directory>.  If it is not there,
  it will download and unpack it (in that directory) for you.

  If you are inside a firewall, you may need to use an http proxy:

  export http_proxy=http://example.com:80

Call Stack (most recent call first):
  cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:451 (INCLUDE)


-- Configuring incomplete, errors occurred!
NO! CONFIGURE ERROR! TRY AGAIN OR ASK IN THE BBS!
-bash-4.2#
作者: lonhowe    时间: 2016-6-23 05:12

#!/bin/bash
# MYSQL 5.7.13 update scripts
# Author: Arefly
# Url: http://www.arefly.com

IN_DIR="/www/wdlinux"

if [ ! $1 ];then
        MYS_VER="5.7.13"
else
        MYS_VER=$1
fi

echo "THANK YOU FOR USING UPDATE SCRIPT MADE BY AREFLY.COM"
echo "YOU ARE GOING TO UPDATE YOUR MYSQL TO ${MYS_VER}"
echo "REMEMBER, YOUR PHP VERSION NEED TO BE 5.5 OR ABOVE!"
echo "YOU CAN JUST HAVE A REST"
echo "IT MAY TAKE A LOT OF TIME"
echo
#read -p "RESS ENTER IF YOU REALLY WANT TO UPDATE"
read -p "DO YOU REALLY WANT TO UPDATE? (Y/N): " yn
if [ "$yn" == "Y" ] || [ "$yn" == "y" ]; then
        echo "MYSQL IS NOW UPDATING!"
else
        exit
fi
echo
echo "-------------------------------------------------------------"
echo


if [ ! -f mysql-${MYS_VER}.tar.gz ];then
        # old: wget -c http://dl.wdlinux.cn:5180/soft/mysql-${MYS_VER}.tar.gz
        wget -c http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-${MYS_VER}.tar.gz
fi
yum install -y cmake bison libmcrypt-devel libjpeg-devel libpng-devel freetype-devel curl-devel openssl-devel libxml2-devel zip unzip
tar zxvf mysql-${MYS_VER}.tar.gz
cd mysql-${MYS_VER}
echo "START CONFIGURING MYSQL"
sleep 3
make clean
cmake -DCMAKE_INSTALL_PREFIX=$IN_DIR/mysql-$MYS_VER -DSYSCONFDIR=$IN_DIR/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_SSL=bundled -DWITH_DEBUG=OFF -DWITH_EXTRA_CHARSETS=complex -DENABLED_PROFILING=ON -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DENABLE_DOWNLOADS=1
[ $? != 0 ] && echo "NO! CONFIGURE ERROR! TRY AGAIN OR ASK IN THE BBS! " && exit
echo "START MAKE"
sleep 3
make
[ $? != 0 ] && echo "NO! MAKE ERROR! TRY AGAIN OR ASK IN THE BBS! " && exit
echo "START MAKE INSTALL"
sleep 3
make install
[ $? != 0 ] && echo "NO! MAKE INSTALL ERROR! TRY AGAIN OR ASK IN THE BBS! " && exit
service mysqld stop
if [ ! -d /www/wdlinux/mysql_bk ];then
mkdir -p /www/wdlinux/mysql_bk
cp -pR /www/wdlinux/mysql/data/* /www/wdlinux/mysql_bk
fi
rm -f /www/wdlinux/mysql
ln -sf $IN_DIR/mysql-$MYS_VER /www/wdlinux/mysql
sh scripts/mysql_install_db.sh --user=mysql --basedir=/www/wdlinux/mysql --datadir=/www/wdlinux/mysql/data
chown -R mysql.mysql /www/wdlinux/mysql/data
mv /www/wdlinux/mysql/data/mysql /www/wdlinux/mysql/data/mysqlo
cp -pR /www/wdlinux/mysql_bk/* /www/wdlinux/mysql/data/
cp support-files/mysql.server /www/wdlinux/init.d/mysqld
chmod 755 /www/wdlinux/init.d/mysqld
service mysqld restart
sh scripts/mysql_install_db.sh --user=mysql --basedir=/www/wdlinux/mysql --datadir=/www/wdlinux/mysql/data
echo
if [ -d /www/wdlinux/mysql-5.7.13 ];then
        ln -sf /www/wdlinux/mysql-5.7.13/lib/mysql/libmysqlclient.so.16* /usr/lib/
fi
cd ..
rm -rf mysql-${Ver}/
rm -rf mysql-${Ver}.tar.gz
sleep 2
sh /www/wdlinux/tools/mysql_wdcp_chg.sh
service mysqld restart
echo
echo "-------------------------------------------------------------"
echo "MYSQL UPDATE FINISH! "
echo "NOW YOUR MYSQL VERSION IS ${MYS_VER}!"
echo "UPDATE SCRIPT MADE BY AREFLY.COM"
echo "THANK YOU FOR USING!"
echo
echo "WDCP (C) COPYRIGHT"
echo
echo "S: I THINK YOU NEED RESTART SERVER AFTER UPDATE."
echo "S2: REMEMBER TO VISIT AREFLY.COM! "
echo




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2