-I/usr/local/include/libmongoc-1.0 -I/usr/local/include/libbson-1.0
在根目录下的config.mk中CFG_CFLAGS=后加上上面两句,前提是安装了libmongoc,mongodb c驱动官网,Installing the MongoDB C Driver (libmongoc) and BSON library (libbson) — libmongoc 1.23.4
再make,还报错
/bin/sh: 1: pkg-config: not found
安装$ sudo apt-get install pkg-config
再次make,成功!