fatal error: netlink/genl/genl.h: No such file or directory #include <netlink/genl/genl.h>找一下..因為已經有 install lib-nl-3-dev 了...
apt-file search genl.h .. libnl-3-dev: /usr/include/libnl3/netlink/genl/genl所以修改 Makefile..
加入
CFLAGS += -I/usr/include/libnl3
然後出現..
/usr/bin/ld: cannot find -lnl-genl-3然後一樣用 apt-file
apt-file search libnl-genl libnl-genl-3-dev: /lib/aarch64-linux-gnu/libnl-genl-3.a libnl-genl-3-dev: /lib/aarch64-linux-gnu/libnl-genl-3.so但是用 find ..
$ sudo find . -name libnl-genl* ./lib/aarch64-linux-gnu/libnl-genl-3.so.200.24.0 ./lib/aarch64-linux-gnu/libnl-genl-3.so.200 ./var/lib/dpkg/info/libnl-genl-3-200:arm64.symbols ./var/lib/dpkg/info/libnl-genl-3-200:arm64.triggers ./var/lib/dpkg/info/libnl-genl-3-200:arm64.list ./var/lib/dpkg/info/libnl-genl-3-200:arm64.md5sums ./var/lib/dpkg/info/libnl-genl-3-200:arm64.shlibs ./usr/share/doc/libnl-genl-3-200所以.. 自己建 link ?:
姊果一直說 fail,沒版法建,只好直接 copy, rename..
cp libnl-genl-3.so.200.24.0 libnl-genl-3.so之後再 make 舊 OK
沒有留言:
張貼留言