2015-08-26 108 views
1

我試圖在運行Solaris 11的Joyent SmartMachine上安裝hiredis。我不斷收到以下錯誤消息。如何在Solaris 11上安裝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... 

回答

1

您需要在進行pip安裝時手動覆蓋您的C編譯器。嘗試以下命令:

CC="gcc -std=gnu99" pip install hiredis