在 Solaris 10 中安装 py-bcrypt 时出错

在 Solaris 10 中安装 py-bcrypt 时出错

我正在尝试将 Rhodecode 安装到 Solaris 10 服务器中,但是当安装程序尝试安装 bcrypt 时失败并出现以下错误:

easy_install py-bcrypt
Searching for py-bcrypt
Reading http://pypi.python.org/simple/py-bcrypt/
Reading http://www.mindrot.org/projects/py-bcrypt/
Reading https://code.google.com/p/py-bcrypt/
Reading https://code.google.com/p/py-bcrypt/downloads/list
Reading http://www.mindrot.org/py-bcrypt.html
Best match: py-bcrypt 0.3
Downloading https://py-bcrypt.googlecode.com/files/py-bcrypt-0.3.tar.gz
Processing py-bcrypt-0.3.tar.gz
Running py-bcrypt-0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-t_OfzJ/py-bcrypt-0.3/egg-dist-tmp-jnXWGe
"bcrypt/bcrypt_python.c", line 29: syntax error before or at: u_int8_t
"bcrypt/bcrypt_python.c", line 29: warning: undefined or missing type for: u_int8_t
"bcrypt/bcrypt_python.c", line 29: warning: function prototype parameters must have types
"bcrypt/bcrypt_python.c", line 86: warning: implicit function declaration: bzero
cc: acomp failed for bcrypt/bcrypt_python.c
error: Setup script exited with error: command '/usr/lib/python2.6/pycc' failed with exit status 1

有人知道如何解决这个问题吗?提前谢谢

答案1

这篇文章相关:https://stackoverflow.com/questions/3103400/how-to-overcome-u-int8-t-vs-uint8-t-issue-efficiently

由于您使用的是库,而不是编写使用这种类型的代码,因此使用 perl 解决方案是安全的。

相关内容