---
title: 编译MongoDB时提示code for hash md5 was not found
description: "编译MongoDB时提示“ERROR:root:code for hash md5 was not found.”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/MongoDB/openmind_mangodb3613_02_0040.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/MongoDB/openmind_mangodb3613_02_0040.html
indexId: 4435750bf5440b7815e98d35790a6b0ab7afde59a4b2c9d68ecede31c6a0454279
---
# 编译MongoDB时提示code for hash md5 was not found

#### 问题现象描述

编译MongoDB时提示“ERROR:root:code for hash md5 was not found.”。


#### 关键过程、根本原因分析

Python没有成功安装hashlib模块。


#### 结论、解决方案及效果

1. 下载hashlib源码包，并对hashlib进行编译安装。
  1 2 3 4 wget https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip unzip hashlib-20081119.zip cd hashlib-20081119 python2 setup.py install

2. 重新编译MongoDB。
