<div class="markdown_views">
<p>问题原因:未安装<a href="http://baike.baidu.com/link?url=wKxraoYIWrRswXEOb1yAcq7tP_O0qrPDcrLnLJgKo6QwwoPWf4dFGHsG9dkzyub9lvMWhj1Dmdqk0QXot1WzyK" target="_blank">GCC</a></p>
cd hiredis && make static
make[3]: 进入目录“/opt/redis-3.0.4/deps/hiredis”
gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
make[3]: gcc:命令未找到
make[3]: *** [net.o] 错误 127
make[3]: 离开目录“/opt/redis-3.0.4/deps/hiredis”
make[2]: *** [hiredis] 错误 2
make[2]: 离开目录“/opt/redis-3.0.4/deps”
make[1]: [persist-settings] 错误 2 (忽略)
CC adlist.o
/bin/sh: cc: 未找到命令
make[1]: *** [adlist.o] 错误 127
make[1]: 离开目录“/opt/redis-3.0.4/src”
make: *** [all] 错误 2
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
解决方案:
linux环境有网的情况下执行命令:
如果没网看这篇linux连接不上网络
yum install gcc-c++
- 1