交叉編譯Procps-ng-3.3.11
Procps-ng軟件包提供進程和內存管理相關的程序。
源碼下載和解壓:
http://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.11.tar.xztar xvJf procps-ng-3.3.11.tar.xz
編譯和安裝:
cd procps-ng-3.3.11
echo "ac_cv_func_realloc_0_nonnull=yes" > arm-linux.cache
echo "ac_cv_func_malloc_0_nonnull=yes" >> arm-linux.cache
NCURSES_CFLAGS="-I/home/armdev/arm-linux/out/usr/include" NCURSES_LIBS="-L/home/armdev/arm-linux/out/usr/lib -lncurses -ltinfo" ./configure --host=arm-linux-gnueabi --prefix=/usr --exec-prefix= --libdir=/usr/lib --disable-static --disable-kill --with-ncurses --cache-file=arm-linux.cache
make
DESTDIR=/home/armdev/arm-linux/out make install
編譯結果:
動態鏈接庫:
libprocps
可執行文件:
top
slabtop
free
pgrep
pidof
pkill
pmap
ps
pwdx
tload
uptime
vmstat
w
sysctl
