vmstat命令丢失

问题描述:

我正在使用嵌入式Linux平台(MIPS处理器,Linux 2.6.18-6.4,带忙框)&我没有看到vmstat命令。我需要做什么来安装这个命令。vmstat命令丢失

我相信这将是应用程序下载和交叉编译它为我的平台,但我在哪里可以找到它的来源。

是否有机会获得MIPS的二进制文件?

vmstat包含在procps包中,您只需交叉编译即可。或者在busybox中启用vmstat并重建busybox

对于预编译版本,libc和libproc版本必须匹配。你使用的是什么工具链?

+0

./mipsel-linux-gcc -v配置为:../gcc-4.2.0-20070124/configure --prefix =/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl -0.9.29-20070423_20090508/--build = mipsel-linux --host = mipsel-linux --target = mipsel-linux-uclibc --with-build-sysroot =/usr/src/redhat/BUILD/build_uClibc - enable-languages = c,C++ --disable -__ cxa_atexit --enable-target-optspace --with-gnu-ld --with-float = hard --enable-threads --infodir =/opt/toolchains/crosstools_hf-linux -2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/info --with-arch = mips32 – Kamath 2011-04-08 06:22:19