1.源码下载
libudev源码
2.源码编译
./autogen.sh
./configure CFLAGS='-g -O1' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-selinux --enable-gtk-doc --libexecdir=/usr/lib --with-systemdsystemunitdir=/usr/lib/systemd/system
3.遇到问题解决
(1)autogen.sh: line 9: gtkdocize: command not found
https://blog.csdn.net/weixin_42736510/article/details/126485398
(2)autogen.sh: line 10: autoreconf: command not found
https://blog.csdn.net/weixin_42736510/article/details/126485716
(3)aclocal: command not found
https://blog.csdn.net/weixin_42736510/article/details/126485772
(4)error: Libtool library used but ‘LIBTOOL’ is undefined
https://blog.csdn.net/weixin_42736510/article/details/126485798
END。