Joe.Fang 发表于 2020-5-7 14:06:37

Redis install failed!

最近安装 redis都是这个问题!

目前用的是阿里云 和 百度云

https://s1.ax1x.com/2020/05/07/YZX4IA.png

licess 发表于 2020-5-7 16:30:03

这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题

Joe.Fang 发表于 2020-5-7 16:32:29

手动下载Redis上传到Src文件夹,执行安装 也出错了

cyj 发表于 2020-5-7 16:44:32

licess 发表于 2020-5-7 16:30
这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题 ...

Notice: redis-5.0.0.tar.gz not found!!!download now...
--2020-05-07 16:39:32--http://download.redis.io/releases/redis-5.0.0.tar.gzResolving download.redis.io (download.redis.io)... failed: Name or service not known.
wget: unable to resolve host address ‘download.redis.io’
Uncompress redis-5.0.0.tar.gz...
tar (child): redis-5.0.0.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cd redis-5.0.0...
include/main.sh: line 436: cd: redis-5.0.0: No such file or directory
make: *** No rule to make target `install'.Stop.
cp: cannot stat ‘redis.conf’: No such file or directory
sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
grep: /usr/local/redis/etc/redis.conf: No such file or directory
sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
iptables: Saving firewall rules to /etc/sysconfig/iptables:
Redirecting to /bin/systemctl reload iptables.service
Notice: redis-4.3.0.tgz not found!!!download now...
--2020-05-07 16:39:36--http://pecl.php.net/get/redis-4.3.0.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 241883 (236K)
Saving to: ‘redis-4.3.0.tgz’

100%[===================================>] 241,883   27.2KB/s   in 8.0s   

2020-05-07 16:39:45 (29.6 KB/s) - ‘redis-4.3.0.tgz’ saved

Uncompress redis-4.3.0.tgz...
tar (child): redis-4.3.0.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cd redis-4.3.0...
include/main.sh: line 436: cd: redis-4.3.0: No such file or directory
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module

include/redis.sh: line 77: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
Add to auto startup...
Add redis service at system startup...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/redis.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
done
Starting Redis server.../etc/init.d/redis: line 33: /usr/local/redis/bin/redis-server: No such file or directory
done
Redis install failed!

cyj 发表于 2020-5-7 16:44:59

licess 发表于 2020-5-7 16:30
这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题 ...

1.6版本也遇到这样问题

licess 发表于 2020-5-7 19:03:03

cyj 发表于 2020-5-7 16:44


--2020-05-07 16:39:32--http://download.redis.io/releases/redis-5.0.0.tar.gzResolving download.redis.io (download.redis.io)... failed: Name or service not known.
wget: unable to resolve host address ‘download.redis.io’

你系统上的DNS都不能正常工作肯定连最基本的下载都下载不了,更不用说安装了

eagle_google 发表于 2021-6-3 16:10:15

我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess

# ./addons.sh install redis
+-----------------------------------------------------------------------+
|            Addons script for LNMP V1.7, Written by Licess             |
+-----------------------------------------------------------------------+
|    A tool to Install cache,optimizer,accelerator...addons for LNMP    |
+-----------------------------------------------------------------------+
|         For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
Multiple PHP version found, Please select the PHP version.
1: Default Main PHP 5.6.40
10: PHP 7.3
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 11 ):
10
Current selection:: PHP 7.3.23
====== Installing Redis ======
Install redis-6.0.8 Stable Version...

Press any key to start...or Press Ctrl+c to cancel
Notice: redis-5.0.9.tar.gz not found!!!download now...
--2021-06-03 15:45:05--http://download.redis.io/releases/redis-5.0.9.tar.gz
Resolving download.redis.io... 45.60.125.1
Connecting to download.redis.io|45.60.125.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1986574 (1.9M)
Saving to: “redis-5.0.9.tar.gz”

100%[====================================================================================================================================================================================================================================>] 1,986,574   --.-K/s   in 0.05s   

2021-06-03 15:45:06 (34.6 MB/s) - “redis-5.0.9.tar.gz” saved

Uncompress redis-5.0.9.tar.gz...
cd redis-5.0.9...
cd src && make install
make: Entering directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'
    CC Makefile.dep
make: Leaving directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'

......

config.status: executing include/jemalloc/jemalloc_mangle.h commands
config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands
config.status: executing include/jemalloc/jemalloc.h commands
configure: WARNING: unrecognized options: --enable-cc-silence
===============================================================================
jemalloc version   : 5.1.0-0-g0
library revision   : 2

CONFIG             : --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence 'CFLAGS=-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops ' LDFLAGS=
CC               : gcc
CONFIGURE_CFLAGS   : -std=gnu99 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops
SPECIFIED_CFLAGS   : -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops
EXTRA_CFLAGS       :
CPPFLAGS         : -D_GNU_SOURCE -D_REENTRANT
CXX                : g++
CONFIGURE_CXXFLAGS : -fvisibility=hidden -O3
SPECIFIED_CXXFLAGS :
EXTRA_CXXFLAGS   :
LDFLAGS            :
EXTRA_LDFLAGS      :
DSO_LDFLAGS      : -shared -Wl,-soname,$(@F)
LIBS               : -lrt -lm-lpthread -ldl
RPATH_EXTRA      :

XSLTPROC         : /usr/bin/xsltproc
XSLROOT            :

PREFIX             : /usr/local
BINDIR             : /usr/local/bin
DATADIR            : /usr/local/share
INCLUDEDIR         : /usr/local/include
LIBDIR             : /usr/local/lib
MANDIR             : /usr/local/share/man

srcroot            :
abs_srcroot      : /usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc/
objroot            :
abs_objroot      : /usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc/

JEMALLOC_PREFIX    : je_
JEMALLOC_PRIVATE_NAMESPACE
                   : je_
install_suffix   :
malloc_conf      :
autogen            : 0
debug            : 0
stats            : 1
prof               : 0
prof-libunwind   : 0
prof-libgcc      : 0
prof-gcc         : 0
fill               : 1
utrace             : 0
xmalloc            : 0
log                : 0
lazy_lock          : 0
cache-oblivious    : 1
cxx                : 0
===============================================================================
cd jemalloc && make CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" lib/libjemalloc.a
make: Entering directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc'
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops-c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/jemalloc.sym.o src/jemalloc.c
nm -a src/jemalloc.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/jemalloc.sym
。。。。。。

    INSTALL redis-check-rdb
    INSTALL redis-check-aof

Hint: It's a good idea to run 'make test' ;)

    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
make: Leaving directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'
iptables: Saving firewall rules to /etc/sysconfig/iptables:
Notice: redis-5.3.2.tgz not found!!!download now...
--2021-06-03 15:46:24--http://pecl.php.net/get/redis-5.3.2.tgz
Resolving pecl.php.net... 104.236.228.160
Connecting to pecl.php.net|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 266814 (261K)
Saving to: “redis-5.3.2.tgz”

100%[====================================================================================================================================================================================================================================>] 266,814      270K/s   in 1.0s   

2021-06-03 15:46:26 (270 KB/s) - “redis-5.3.2.tgz” saved

Uncompress redis-5.3.2.tgz...
cd redis-5.3.2...
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
include/redis.sh: line 80: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
cp: cannot create regular file `/etc/systemd/system/redis.service': No such file or directory
Add to auto startup...
Add redis service at system startup...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so (/usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so: cannot open shared object file: No such file or directory), /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so (/usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
Starting Redis server...7223:C 03 Jun 2021 15:46:27.847 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
7223:C 03 Jun 2021 15:46:27.847 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=7223, just started
7223:C 03 Jun 2021 15:46:27.847 # Configuration loaded
done
Redis install failed!

eagle_google 发表于 2021-6-3 19:07:47

eagle_google 发表于 2021-6-3 16:10
我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess



问题解决:根据报错信息,是因为没有这个扩展导致 Unable to load dynamic library 'redis.so' (tried: /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so
安装这个扩展后,用./addons.sh uninstall redis卸载redis再重装安装过即可

licess 发表于 2021-6-3 20:13:28

eagle_google 发表于 2021-6-3 16:10
我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess



configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

已经明确给出你提示了,你centos 6肯定是不符合要求的
可以自行编译安装升级autoconf到2.68或更高版本

eagle_google 发表于 2021-6-4 15:59:46

licess 发表于 2021-6-3 20:13
configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
a ...

是的,一开始没仔细看到这个error。后来自己在动态编译redis.so扩展的时候,里面自然就回到Autoconf version 2.68 or higher is required这个问题上了的,当时也是一步步到这里搞定的。
页: [1]
查看完整版本: Redis install failed!