WDlinux官方论坛's Archiver

3767b7f 发表于 2017-3-11 23:42

wdCP最新版安装innodb出错

[i=s] 本帖最后由 3767b7f 于 2017-3-11 23:54 编辑 [/i]

如题,wdcp是最新版的,当前版本: wdCP v3.0.8 最新 v3.0.8,参照这个帖子:
[url]http://www.wdlinux.cn/bbs/viewthread.php?tid=53201&highlight=innodb[/url]
修改了脚本当中的下载地址为管理员说的:wget -c http://dl.wdlinux.cn/files/mysql/${M_ver}.tar.gz 下载下来后还是报错,如下:
--2017-03-11 23:27:06--  http://dl.wdlinux.cn/files/mysql/mysql-5.6.35.tar.gz
Resolving dl.wdlinux.cn... 222.186.61.177
Connecting to dl.wdlinux.cn|222.186.61.177|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 32167628 (31M), 32162731 (31M) remaining [application/x-gzip]
Saving to: “mysql-5.6.35.tar.gz”

100%[=============================================================================>] 32,167,628  3.44M/s   in 9.0s   

2017-03-11 23:27:15 (3.39 MB/s) - “mysql-5.6.35.tar.gz” saved [32167628/32167628]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./mysql_innodb_ins.sh: line 23: cd: mysql-5.6.35: No such file or directory
./mysql_innodb_ins.sh: line 46: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
希望管理员或者是知道的,给个解答,谢谢.
==========补充===========
我删除了 /tmp 目录下的那个MySQL压缩包,然后重新运行脚本,倒是编译了,但是编译出错:
mysql_innodb_ins.sh: line 46: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
=======补充==============
删除了 /tmp 目录下的所有文件,再次重新使用脚本,结果还是编译出错,
下面是脚本内容:[code]#!/bin/bash
# mysql innodb install scripts
# Author:wdlinux
# Url http://www.wdlinux.cn

if [ ! -f /usr/bin/gcc ];then
fi

M_ver=`readlink /www/wdlinux/mysql | awk -F"/" '{print $4}'`

if [ -d /root/lanmp/$M_ver ];then
        cd /root/lanmp/$M_ver
        make clean
elif [ -f /root/lanmp/${M_ver}.tar.gz ];then
        cd /root/lanmp
        tar zxvf ${M_ver}.tar.gz
        cd $M_ver
else
        cd /tmp
        wget -c http://dl.wdlinux.cn/files/mysql/${M_ver}.tar.gz
        tar zxvf ${M_ver}.tar.gz
        cd $M_ver
fi
if grep -i 'ubuntu' /etc/issue;then
        if [ -f /usr/lib/x86_64-linux-gnu/libncurses.so ];then
                #LIBNCU="/usr/lib/x86_64-linux-gnu/libncurses.so"
                LIBNCU=""
        elif [ -f /usr/lib/i386-linux-gnu/libncurses.so ];then
                #LIBNCU="/usr/lib/i386-linux-gnu/libncurses.so"
                LIBNCU=""
        else
                LIBNCU=""
        fi
        else
        if [ -f /usr/lib64/libncursesw.so ];then
                LIBNCU="--with-named-curses-libs=/usr/lib64/libncursesw.so"
        elif [ -f /usr/lib/libncursesw.so ];then
                LIBNCU="--with-named-curses-libs=/usr/lib/libncursesw.so"
        else
                LIBNCU=""
        fi
fi
IN_DIR="/www/wdlinux"
./configure \
        --prefix=$IN_DIR/$M_ver \
        --sysconfdir=$IN_DIR/etc \
        --enable-assembler \
        --enable-thread-safe-client \
        --with-extra-charsets=complex \
        --with-ssl \
        --with-embedded-server \
        --with-plugins=innobase,innodb_plugin
make
[ $? != 0 ] && exit
service mysqld stop
make install
cp /www/wdlinux/etc/my.cnf /www/wdlinux/etc/my.cnf.old
cp -f support-files/my-medium.cnf /www/wdlinux/etc/my.cnf
service mysqld start
echo
echo "mysql innodb install is OK"
echo
[/code]报错内容为:
./mysql_innodb_ins.sh: line 46: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
希望管理员看见了,能够解惑,谢谢!@admin

3767b7f 发表于 2017-3-12 10:42

没人么....好伤

longyushen 发表于 2018-1-16 12:23

好伤啊,我也一直在找

七夜风云 发表于 2018-7-25 23:54

无语,新版,用这个根本不能用,一直不解决,直接不用wdcp了,烦

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.