gcc - Redis 安装问题 "cc: Command not found"

标签 gcc redis

安装redis真的很简单。我已经在几个虚拟机上完成了。但在一个实例中,我面临以下问题。

[root@server redis-2.4.2]# make
cd src && make all
make[1]: Entering directory `/home/user/redis-2.4.2/src'
MAKE hiredis
make[2]: Entering directory `/home/user/redis-2.4.2/deps/hiredis'
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings    -g -ggdb  net.c
make[2]: cc: Command not found
make[2]: *** [net.o] Error 127
make[2]: Leaving directory `/home/user/redis-2.4.2/deps/hiredis'
make[1]: *** [dependencies] Error 2
make[1]: Leaving directory `/home/user/redis-2.4.2/src'
make: *** [all] Error 2

有没有其他安装redis的方法?

最佳答案

wget http://download.redis.io/redis-stable.tar.gz

tar xvzf redis-stable.tar.gz

cd redis-稳定

sudo apt-get install make

sudo apt-get 安装 gcc

sudo apt-get 安装 tcl

sudo apt-get install build-essential

sudo apt-get 更新

## 如果还有另一个错误,如“ fatal error :jemalloc/jemalloc.h:没有这样的文件或目录”

## 只需运行“make distclean”

制作

进行测试

关于gcc - Redis 安装问题 "cc: Command not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8131008/

相关文章:

c - 在 C 中静态推断符号类型

python - 将 redis 哈希转换为 python 字典?

data-structures - 为什么redis SET中插入的时间复杂度是O(n)?

redis - Redis 和 Faye 中的分层 Pub/Sub 和推送通知

c++ - 静态 const 类成员的奇怪链接器问题

c - 使用 gcc 预处理器制作余弦表

C 数组在 Windows 和 Ubuntu 上的处理方式不同

c++ - clang++/g++/gfortran之间的简单测试用例

python - RedisQueue 与 Flask 应用程序一起运行

lua - 在redis中存储和使用lua脚本