我正在尝试在运行Solaris 11的Joyent SmartMachine上安装hiredis。我一直收到以下错误。
In file included from /usr/include/iso/string_iso.h:48:0,
from /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/string.h:41,
from vendor/hiredis/read.c:34:
/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/include-fixed/sys/feature_tests.h:366:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
答案 0 :(得分:1)
您需要在执行pip安装时手动覆盖C编译器。请尝试以下命令:
CC="gcc -std=gnu99" pip install hiredis