相关文章推荐
坏坏的遥控器  ·  XCode报错:Command ...·  1 年前    · 
安静的生菜  ·  Error trying to diff ...·  1 年前    · 

make[1]: Entering directory '/xx/xx/redis-x.x.x/src'

CC adlist.o

/bin/sh: cc: command not found

make[1]:  *** [adlist.o] Error 127

make[1]: Leaving directory '/xx/xx/redis-x.x.x/src'

make: *** [all] Error 2

1、先查看是否安装c++的编译器; 执行 yum -y install gcc-c++

安装完c++编译器后 再次 make 若报此错

出现如下错误:

cd src && make all

make[1]: Entering directory '/xx/xx/redis-x.x.x/src'

LINK  redis-server

cc:    ../deps/hiredis/libhiredis.a: No such file or directory

cc:    ../deps/lua/src/liblua.a:  No such file or directory

make[1]: ***  [redis-server] Error 1

make[1]:  Leaving directory '/xx/xx/redis-x.x.x/src'

make:    ***  [all] Error 2

2、执行 make clean 后再次 执行 make ,再检查redis-x.x.x/src 目录下有没有 redis-server、redis-cli 和 /usr/local/bin下有没有

若无,则把redis-x.x.x 文件夹删掉,再解压一次redis的压缩包,cd进入 redis-x.x.x 中, make 一下 即可

即解决安装redis时 , 在执行 make 时报错的问题

执行 make 时若报这个错出现如下错误 : cd src && make allmake[1]: Entering directory '/xx/xx/redis-x.x.x/src'         CC adlist.o/bin/sh: cc: command not foundmake[1]:  *** [adlist.o] Error 127...
今天 安装 redis 出现些之前 安装 不曾出现错误,一并在此做个记录 一、 安装 redis 及出现错误 首先下载 redis ,官方下载地址页面:https:// redis .io/download 我们这里选择稳定版6.0.1版本 正常 安装 步骤如下: [root@localhost ~]# yum install gcc [root@localhost ~]# cd /usr/local [root@localhost local]# wget http://download. redis .io/releases/ redis -6.0.1.tar.gz [root@localhost local]# tar
Linux 7 及以上版本 安装 redis 6.0.8, make 报错 make [1]: *** [server.o] Error 1的解决方法 目前 Redis 官网下载的版本为6.0版本 make 安装 ,YUM 安装 的GCC和附带组件为V4.8.5版本的, 如果 安装 低于V6.08这个版本,则不会出现gcc版本过低,因此根据你的 Redis 的程序版本决定你是否要升级GCC; 会报错是因为gcc版本过低,yum 安装 的gcc是4.8.5的。因此需要升级gcc,升级过程如下: 一、自动在线 安装 gcc gcc 下载地址:gcc下
问题1:jemalloc/jemalloc.h: No such file or directory [root@localhost redis -6.2.6]# make cd src && make all make [1]: Entering directory `/root/ redis /r
因为我所有的操作步骤都是按照上面来的,我的解决办法也非常的简单: 如果你走到 make 这一步的 候只出现了一行“ make [1]: Leaving directory `/usr/local/nginx-1.12.1;”提示,不用管它,继续走 make install ; 1、我只需要去看/usr/local下面是否有nginx文件夹? 2、如果已经有nginx文件夹?
第一种方案是 redis 的版本降低,降为5.0.8 第二种方案是升级gcc版本 [root@localhost redis -6.0.1]# gcc -v # 查看gcc版本 [root@localhost redis -6.0.1]# yum -y install centos-release-scl [root@localhost redis -6.0.1]# yum -y install devtoolset- 执行 make 后报错: cd src && make all make [1]: Entering directory `/home/liuchaofan/ redis -3.0.7/src' CC adlist.o /bin/sh: cc: command not found make [1]: *** [adlist.o] Error 127 make [1]... 从官方下载最新 Redis 进行 安装 ,官网地址:http:// redis .io/download $ wget http://download. redis .io/releases/ redis -3.2.3.tar.gz $ tar xzf redis -3.2.3.tar.gz $ cd redis -3.2.3 $ make $ make install Redis 启动 Redis Server /path/to/ redis .conf Redis 关闭(默认port为6379) Redis Cli -p port -a Password shutdo
当在Linux上 安装 Redis ,可能会遇到 make 报错的情况。这可能是由于缺少依赖项或编译器版本不兼容等原因导致的。为了解决这个问题,您可以尝试以下几个步骤: 1. 确保您已经 安装 了所有必需的依赖项,例如gcc、 make 、tcl等。 2. 检查您的编译器版本是否与 Redis 的要求相匹配。您可以在 Redis 的官方网站上查找相关信息。 3. 尝试使用不同的编译器版本进行编译。您可以使用命令“ make CC=编译器名称”来指定使用特定的编译器。 4. 检查您的系统是否有足够的内存和磁盘空间来编译 Redis 。 5. 如果以上步骤都无法解决问题,您可以尝试使用其他方法来 安装 Redis ,例如使用二进制包或使用Docker容器。