make redis出现错误可能原因

Redis 在CentOS7中部署出现make的问题 Redis 在CentOS7中部署出现make的问题 一、在执行make时出现错误 原因:因为Resdis 是C实现的,需要gcc来进行编译,所以原因是系统未安装gcc: 解决方案: 第一步: yum install -y gcc g++ gcc-c++ make 第二步:再次执行make,如果make出现错误为:致命错误,执行下面这个命令 make MALLOC=libc 成功了! 然后就可以按照安装步骤一步一步来就好了 如果不知道,就看下面 二、安装步骤 第一步:下载 因为CentOS默认的下载不 阅读详情

make: * No rule to make target 错误原因、分析和解决办法
上面博客其中红字部分:
最后发现,上述问题的产生的根本原因是工程更改路径或者更改了其中的文件夹名称之后,之前生成的.o.d文件在再次编译时并不会重新编译,因而导致该问题。根源解决办法是 删除编译后生成的obj文件夹。然后重新编译就行了。
所谓的删除obj文件夹只需要用

make clean

清理一下make时生成的中间文件就行了(比如.o文件),并不是要删除什么具体的文件夹。

结合centos7安装redis时的情况,因为我们要搭建Redis Cluster时肯定要安装多个redis。

1.使用tar -zxvf redis-stable.tar.gz对它进行解压。

2.cd进入 redis-stable文件夹。

3.执行make PREFIX=/usr/local/redis1 install这句。

我们就安装好一个redis了,但是如果要再安装一个redis在/usr/local/redis2文件夹下,再执行make PREFIX=/usr/local/redis2 install就不行了,会报错。
有一个笨办法就是删除解压后的文件夹在重新解压一次,向上面1、2、3步一样重新make。
正确的做法是先使用make clean清理上次编译安装时生成的中间文件,再执行make PREFIX=/usr/local/redis2 install。

还有要注意的一点是记得安装gcc和gcc-c++,还要注意gcc的版本,用gcc -v来查看当前安装的gcc版本,版本过低(一般需要4.0以上)的话编译redis3.0以上的是会出错的。

 yum install gcc
 yum install gcc-c++

有可能还要安装tcl(如果make test出现You need tcl 8.5 or newer in order to run the Redis test的话)

yum install tcl
华为硬件逻辑岗笔试题(一) 积少成多,集腋成裘,坚持!!! 目录 1. 进制转换 2. 状态机和编码方式 3. 存储器的分类 4. Verilog语法中的操作符 5. 对组合逻辑的认识 6. 对时序逻辑的认识 7. 竞争冒险的认识 8. 基本时序逻辑电路 9. 建立时间和保持时间 10. 同步时序电路 11. 组合逻辑和时序逻辑判断 13. 基本总线的理解 14.加法器 15.FPGA开发工具 1. 进制转换 1、十进制46.25对应的二进制表达式为( )。 A 101110.11... 阅读详情

相关推荐

Circos图审美拯救计划:用TBtools复刻Nature级共线性分析图谱

本文针对Circos图在共线性分析中的审美提升问题,提供了一套基于TBtools的完整优化方案。通过构建和谐的色彩体系、精细控制信息层布局以及模仿顶刊构图逻辑,详细讲解了如何从配色、透明度、标签显示到高级参数设置,将默认图表升级为具有高级学术美感的Nature级图谱,助力研究者提升论文图表质量。

cherry的博客 911

【redis】rediss指定地点安装报错 make: *** No rule to make target ‘xx/xxx/xx’ Stop.

编译安装redis,指定安装地址报错 使用命令 make PREFIX=指定地址 install ,因PREFIX 后面多了空格报错。 报错提示“make: *** No rule to make target ‘/home/ekp/redis’. Stop.”

weixin_45039757的博客 1597

别再手动调参了!用MATLAB+改进PSO算法,5步搞定机械臂轨迹优化(附完整代码)

本文介绍如何利用MATLAB和改进PSO算法快速优化机械臂轨迹规划,仅需5步即可完成传统耗时的手动调参过程。通过混沌初始化、自适应权重等创新方法,改进PSO算法显著提升优化效率,实现全局最优解搜索,适用于工业自动化中的机械臂控制。文章包含完整MATLAB代码实现,帮助工程师轻松应用于实际生产场景。

weixin_29232121的博客 357

关于make: *** No rule to make target `clean'. Stop.的解决

在重新编译makefile工程文件时需要用到 #make clean 命令, 但是最近工程使用make clean的时候总是提示: make: *** No rule to make target `/clean'. Stop. 很烦的错误,查看makefile 文件 配置什么都是正常没有改动的。 但是其他有的工程用make clean命令就可以顺利通过,有些它就是出...

weixin_30296405的博客 3525

gesp c++ 五级知识点

gesp c++ 五级知识点

MMD.然大大 2010

运放 + MOS管构成的恒流电路分析及实用环境器件参数选择

恒流电路

五花带点肉 2万+

linux安装redis

从 百度下载redis :http://download.redis.io/releases/redis-3.0.0.tar.gz 如果服务器有wget 命令,直接通过命令下载,如下 wget http://download.redis.io/releases/redis-3.0.0.tar.gz 如果提示wget不存在,则直接用网址打开路径下载,在通过rz -be 命令上传, 上传到linux服务器 通过cp命令赋值到/usr/local目录下,如果提示操作失败,通过su一...

mr_xiangyg的博客 1238

数据挖掘在人力资源分析中的实战案例

在当今竞争激烈的商业环境中,人力资源管理对于企业的成功至关重要。有效的人力资源管理能够提高员工绩效、降低员工流失率、优化人才招聘等。而数据挖掘技术为人力资源管理提供了强大的工具,通过对大量人力资源数据的分析,可以发现潜在的规律和模式,为企业的决策提供有力支持。本文的目的是通过实际案例展示数据挖掘在人力资源分析中的具体应用,涵盖员工绩效预测、人才招聘筛选、员工流失分析等多个方面。通过详细的案例分析,帮助读者理解数据挖掘技术在人力资源管理中的实际操作和应用价值。

移动开发前沿的博客 489

关于make: *** No rule to make target `clean'. Stop.的解决

解决方案:删除原有的.o文件,然后重新make即可。 欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。 新的改变 我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你...

weixin_40019286的博客 5886

基于STM32设计的盲人智能导盲杖

本设计基于STM32单片机,开发了一种面向视障人群的智能导盲杖系统。系统以STM32F103C8T6为核心控制器,集成了超声波测距、语音提示、环境光检测、GPS定位及4G通信等多种功能模块。

650

OP-TEE虚拟化支持详解

OP-TEE虚拟化支持解析 OP-TEE提供实验性虚拟化方案,支持多虚拟机共享安全执行环境。核心特性包括: 配置选项:CFG_VIRTUALIZATION启用虚拟化,CFG_VIRT_GUEST_COUNT限制虚拟机数量并分配均等内存资源; Hypervisor协作:需实现虚拟机生命周期通知、SMC参数转换、内存固定等关键协议; 当前限制:仅支持Armv8架构,硬件资源共享有限,采用静态内存配额机制; 架构实现:通过MMU分区切换和扩展内存分配器实现多租户隔离,Nexus核心层管理虚拟机上下文。该方案适用于

Linux内核架构师 109

make: *** No rule to make target `clean‘. Stop.的解决

关于make: *** No rule to make target `clean’. Stop.的解决 - foundwant - 博客园 https://www.cnblogs.com/foundwant/archive/2013/07/12/3185492.html 写出具体要clean的makefile文件名。 如makefile.mk为需要clean的文件,则 用make makefile clean,而非make clean命令 ...

Electrical_IT的博客 1万+

WPF实战案例 | C# WPF实现大学选课系统

WPF实战案例_C# WPF实现大学选课系统, C# WPF实现大学选课系统,大作业,毕业设计,该系统实现多身份登录、修改密码、课程的管理,个人信息的管理等功能。这个源码让你快速搭建自己的应用程序,注释完整,代码规范,各种风格都有,代码上手简单,代码独立,可以直接用程序打开,运行使用。也可直接点击EXE运行程序。

不踩坑,不知道坑有多深;不总结,踩过的坑白踩。 4625

linux下安装redis

安装: 通过wget方式直接在linux上下载Redis wget http://download.redis.io/releases/redis-2.6.17.tar.gz 解压下载的redis-2.6.17.tar.gz 文件 tar xzf redis-2.6.17.tar.gz 进入解压后的文件夹 cd redis-2.6.17 编译安装 make 运行: 通过

luckcircle的博客 1147

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【Redis】Linux安装Redis步骤详细讲解,以及make、make install区别

大家好,我是被白菜拱的猪。 一个热爱学习废寝忘食头悬梁锥刺股,痴迷于girl的潇洒从容淡然coding handsome boy。 文章目录一、Linux安装Redis1、下载安装包2、解压文件压缩包3、安装基本环境拓展:make与make install4、redis默认安装路径 `use/local/bin`5、将redis配置文件赋值到默认路径下6、设置为后台运行7、通过指定的配置文件启动redis服务8、使用redis-cli客户端使用redis二、结束语 一、Linux安装Redis 如今有些懒惰

放开这颗白菜让我来 1万+

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

CentOS Redis make错误

错误原因 make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/opt/redis-6.0.6/src’ make: *** [all] Error 2 make[1]: Leaving directory `/opt/redis-6.0.6/src’ 这个基本无视 make[1]: *** [server.o] Error 1 [ gcc -v 查看当前版本 ] 版本默认为4.8.5 [ yum install cento

weixin_45326085的博客 568

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

linux下安装redis执行make的时候报错

版权声明:本文为老麻原创文章,...

good_luck_l的博客 3796

linux下安装redis时make命令出现错误

出现错误的截图: 原因: 缺少相关文件 解决方法: 1、安装gcc套装: yum install cpp yum install binutils yum install glibc yum install glibc-kernheaders yum install glibc-common yum install glibc-devel yum install gcc yum install make 2、升级gcc yum -y install centos-release-scl yum -y in

aaaPostcard的博客 2264

安装Redis 执行make命令报错

安装Redis 执行make命令报错 make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/opt/redis-6.0.9/src' make: *** [all] Error 2 用gcc -v查看版本 发现CentOS7默认的gcc版本为4.8.5,安装Redis6.0需要将gcc版本升级到5.3以上,所以要升级gcc命令 yum -y install centos-release-scl yum -y install devtoo

qq_41685731的博客 2935

make错误 redis6_centos6.8下安装redis,make test失败,解决方法

错误信息解决办法,安装tcl:sudo wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gzsudo tar -zxvf -C /usr/localcd /usr/local/tcl8.6.1/unixsudo ./configuresudo makesudo make install安装完tcl之后执行make test,出现...

weixin_33201531的博客 217

make错误 redis6_redis make错误

make 32bit出现问题/usr/include/gnu/stubs.h:7:27: error:gnu/stubs-32.h: No such file or directory解决yum install glibc-devel.i686又出现问题cc: error: ../deps/hiredis/libhiredis.a: No such file ordirectorycc: erro...

weixin_34410975的博客 563

redis make错误处理

cc: ../deps/hiredis/libhiredis.a: No such file or directory cc: ../deps/lua/src/liblua.a: No such file or directory cc: ../deps/geohash-int/geohash.o: No such file or directory cc: ../deps/geo...

aa8102980的博客 461

6 redis 编译失败_Redis make编译报错解决方法

在linux环境下安装redis,在make编译步骤报如下错误信息:[root@centos6 redis-3.2.6]# makecd src && make allmake[1]: Entering directory `/var/redis-3.2.6/src'CC adlist.o/bin/sh: cc: command not foundmake[1]: *** [adl...

weixin_39531635的博客 894

Centos7 Redis 6 make编译错误解决办法

Redis 6.0.8编译错误解决问题安装gcc手动安装GCC编译器使用新的gcc编译redis 问题 当你下载redis 最新版本6.0.8 的时候会发现make的时候会报错,简单来说就是最新版的redis用到了c11 ,你的系统gcc版本低了,系统自带gcc版本是4.8.5,只需要更新下gcc到5.4以上即可,同时编译redis时带上gcc版本的使用参数,不影响系统自带gcc!我这里安装最新版gcc10.2.0 cd src && make all make[1]: 进入目录“/opt/

笑而不语的博客 5514

make && make install 出错

cd src && make all make[1]: Entering directory /home/leyou/redis/src' CC Makefile.dep make[1]: Leaving directory/home/leyou/redis/src’ make[1]: Entering directory /home/leyou/redis/src' rm -rf...

badboynotbad的博客 3521

centos安装redis6.x报错 make报错 make test报错

redis6.x安装报错 make报错 make test报错解决办法

AVATAR 1024
上一篇: docker里的ubuntu16下搭建redis
github_32658299
博客等级 码龄11年 21粉丝 33原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值