下载最新版的HTOP
http://sourceforge.net/projects/htop/
如:
wget http://sourceforge.net/projects/htop/files/latest/download
wget http://jaist.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz
解压下载文件并且安装
如:
yum install -y gcc,ncurses-devel
tar -zxf htop-1.0.2.tar.gz
cd htop-1.0.2
./configure && make && make install
如有以下提示,请yum install -y gcc:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/htop-1.0.2‘:
configure: error: no acceptable C compiler found in $PATH
See `config.log‘ for more details.
如有以下提示,请请安装yum install -y ncurses-devel
configure: error: You may want to use --disable-unicode or install libncursesw.
cd ..
rm -rf htop-1.0.2*(删除下载htop源码包,这一步可做可不做啦,看你资源空间啦)
本文出自 “11720498” 博客,请务必保留此出处http://11730498.blog.51cto.com/11720498/1833075
原文地址:http://11730498.blog.51cto.com/11720498/1833075