源码下载:
http://sourceforge.net/projects/htop/
目前最新版为1.0.2,因此:
wget http://nchc.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz
tar -zxf htop-1.0.2.tar.gz && cd htop-1.0.2
开始安装:
./configure
make && make install
备注:
若出现错误:
make: *** No targets specified and no makefile found. Stop.
则需要安装 gcc build-essential
yum install -y gcc build-essential
若出现错误:
configure: error: You may want to use –disable-unicode or install libncursesw.
则需安装 ncurses-devel
yum install -y ncurses-devel