參考資訊:
https://blog.csdn.net/Sensente/article/details/127480795
問題如下:
In file included from /usr/include/rpc/rpc.h:38, from busybox-1.24.2/networking/inetd.c:178: /usr/include/rpc/types.h:98:10: fatal error: netconfig.h: No such file or directory 98 | #include <netconfig.h> | ^~~~~~~~~~~~~ compilation terminated. make[3]: *** [busybox-1.24.2/scripts/Makefile.build:198: networking/inetd.o] Error 1 make[2]: *** [busybox-1.24.2/Makefile:741: networking] Error 2 make[1]: *** [Makefile:112: _all] Error 2 make: *** [Makefile:14: all] Error 2
解法如下:
$ sudo apt-get install libtirpc-dev -y $ sudo ln -s /usr/include/tirpc/rpc/types.h /usr/include/rpc $ sudo ln -s /usr/include/tirpc/netconfig.h /usr/include