开发者社区> 问答> 正文

linux下安装node.js报错,求大神解决

目前正要部署应用到linux服务器上

在安装node.js时各种报错,首先是python版本问题,后来装了python2.7.5,

在执行./configure时,出现这个错误

ERROR:root:code for hash md5 was not found.
 Traceback (most recent call last):
 File "/usr/local/lib/python2.7/hashlib.py", line 139, in 
 globals()[__func_name] = get_hash(func_name)
 File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
 raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type md5
 ERROR:root:code for hash sha1 was not found.
 Traceback (most recent call last):
 File "/usr/local/lib/python2.7/hashlib.py", line 139, in 
 globals()[func_name] = get_hash(func_name)
 File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
 raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha1
 ERROR:root:code for hash sha224 was not found.
 Traceback (most recent call last):
 File "/usr/local/lib/python2.7/hashlib.py", line 139, in 
 globals()[func_name] = get_hash(func_name)
 File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
 raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha224
 ERROR:root:code for hash sha256 was not found.
 Traceback (most recent call last):
 File "/usr/local/lib/python2.7/hashlib.py", line 139, in 
 globals()[func_name] = get_hash(func_name)
 File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
 raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha256
 ERROR:root:code for hash sha384 was not found.
 Traceback (most recent call last):
 File "/usr/local/lib/python2.7/hashlib.py", line 139, in 
 globals()[func_name] = get_hash(func_name)
 File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
 raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha384
 ERROR:root:code for hash sha512 was not found.

朋友说是openssl的版本问题~目前还没解决...
有没有遇到过相似问题的,求指教一下,头快炸了~

展开
收起
杨冬芳 2016-07-08 17:37:02 4022 0
1 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
探究 Node.js 的服务端之路 立即下载
个推微服务实践 基于OpenResty 和Node.js 立即下载
沪江基于Node.js大规模应用实践 立即下载