python - 如何在 Solaris 11 上安装hiredis?

标签 python pip solaris hiredis joyent

我正在尝试在运行 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...

最佳答案

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

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

关于python - 如何在 Solaris 11 上安装hiredis?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32231429/

相关文章:

php - Google map API - 标记、MySQL

python - 与我的本地计算机相比,为什么 App Engine 显示不同的 float 舍入结果?

python - 在centos 7中安装pymssql时出错

go - 我可以在 Solaris 5.10 上使用 golang 吗?

java - 哪个 Java 库用于创建 Solaris pkg 软件包?

python - 在 Mac OS X 的 Python 中使用 Voice 而不是 'raw_input'

python - 在不离开僵尸进程的情况下启动进程并从 Ruby on Rails 应用程序中将其终止

python - pip 安装 UnicodeDecodeError

macos - 在山狮上安装 scipy 失败

java - CORBA 通信问题