报错
/root/.go/pkg/mod/github.com/coreos/go-systemd/v22@v22.3.2/sdjournal/journal.go:27:11: fatal error: systemd/sd-journal.h: No such file or directory
27 | //
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
解决:yum搜索安装其开发包即可
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.bfsu.edu.cn
* updates: mirrors.bfsu.edu.cn
=============================================================================================== N/S matched: systemd ================================================================================================
clevis-systemd.x86_64 : systemd integration for clevis
oci-systemd-hook.x86_64 : OCI systemd hook for docker
pcp-pmda-systemd.x86_64 : Performance Co-Pilot (PCP) metrics from the Systemd journal
rpm-plugin-systemd-inhibit.x86_64 : Rpm plugin for systemd inhibit functionality
systemd-devel.i686 : Development headers for systemd
systemd-devel.x86_64 : Development headers for systemd
systemd-libs.i686 : systemd libraries
systemd-libs.x86_64 : systemd libraries
systemd-python.x86_64 : Python 2 bindings for systemd
systemd-sysv.x86_64 : SysV tools for systemd
oci-register-machine.x86_64 : Golang binary to register OCI containers with systemd-machined
systemd.x86_64 : A System and Service Manager
systemd-journal-gateway.x86_64 : Gateway for serving journal events over the network using HTTP
systemd-networkd.x86_64 : System service that manages networks.
systemd-resolved.i686 : Network Name Resolution manager.
systemd-resolved.x86_64 : Network Name Resolution manager.
名称和简介匹配 only,使用“search all”试试。