1

I'm trying to install hiredis on my Joyent SmartMachine running Solaris 11. I keep getting the following error.

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...
4

1 回答 1

1

在进行 pip 安装时,您需要手动覆盖 C 编译器。尝试以下命令:

CC="gcc -std=gnu99" pip install hiredis
于 2015-08-26T16:02:04.373 回答