linux-ftools 工具使用
1、下载:
github上有很多转载的:例如https://github.com/yazgoo/linux-ftools,读者可自行下载:
2、编译:
tar -xvzf linux-ftools-test.tar.gz
cd linux-ftools-test/
./configure
make
make install
2.1 编译失败处理
-bash-4.2$ make CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/linux-ftools-test/missing --run aclocal-1.11 /home/linux-ftools-test/missing: line 54: aclocal-1.11: command not found WARNING: `aclocal-1.11' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.ac'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site.
cd . && /bin/sh /home/linux-ftools-test/missing --run automake-1.11 --gnu
/home/linux-ftools-test/missing: line 54: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/t24685/linux-ftools-test/missing --run autoconf
configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
可执行如下操作:
aclocal,产生aclocal.m4文件
autoconf,生成configure文件
automake,产生Makefile.in: automake --add-missing
./configure,生成Makefile文件
make
make install
3、查看生成的可执行文件(命令)
生成linux-fadvise 、linux-fallocate 、linux-fincore三个命令
[root@localhost linux-ftools-test]# ls aclocal.m4 configure.ac linux-fadvise linux-fincore Makefile.in waste_memory.c AUTHORS COPYING linux-fadvise.c linux-fincore.c missing ChangeLog debian linux-fadvise.o linux-fincore.o NEWS config.log depcomp linux-fallocate linux-ftools.h README config.status INSTALL linux-fallocate.c Makefile RELEASE configure install-sh linux-fallocate.o Makefile.am showrlimit.c
参考:
https://blog.csdn.net/icycode/article/details/80200437