安装postgresql的时候,with-systemd会报这个错。 原因systemd-level没有安装,需要安装如下: sudo apt-get install libsystemd-dev 即可。