Error while building MongoDB/kerberos modules? Check here.

NodeBB Development
  • Was attempting to troubleshoot why grunt wasn't being installed properly, and it turns out I had a peer dependency error:

    npm WARN EPEERINVALID [email protected] requires a peer of kerberos@~0.0 but none was installed.

    Attempting to install kerberos or mongodb (the module that requires it) resulted in this error.

    ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
    compilation terminated.

    As it turns out, you're missing a dependency and must install it via apt:

    sudo apt-get install libkrb5-dev

    Looks like @jongarrison had the same issue 😆

  • NodeBB w/ MongoDB still works just fine even though the kerberos dependency doesn't build, it just means you can't connect to MongoDB servers utilising kerberos authentication.

    Would prefer not to have to add libkrb5-dev to the list of dependencies, so investigating alternatives...

Suggested Topics