我要评分
获取效率
正确性
完整性
易理解

Error "code for hash md5 was not found" Reported When Compiling MongoDB

Symptom

An error is reported stating "ERROR:root:code for hash md5 was not found." when Compiling MongoDB.

Key Process and Cause Analysis

The hasalib module is not installed in Python.

Conclusion and Solution

  1. Download the hasalib source package and compile and install hasalib.
    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. Recompile MongoDB.