Linux下安装htop

[root@localhost hbk]# git clone https://github.com/hishamhm/htop.git

从git上克隆的htop,根据README.md文件的说明

This program is distributed as a standard autotools-based package.
See the [INSTALL](/INSTALL) file for detailed instructions.

When compiling from a [release tarball](https://hisham.hm/htop/releases/), run:

    ./configure && make

For compiling sources downloaded from the Git repository, run:

    ./autogen.sh && ./configure && make

By default `make install` will install into `/usr/local`, for changing
the path use `./configure --prefix=/some/path`.

执行了如下命令,报了如下错误

[root@localhost htop]# ./autogen.sh && ./configure && make
./autogen.sh:行3: autoreconf: 未找到命令

问题的原因是我的linux中没有安装automake工具
执行如下命令:

[root@localhost htop]# yum install autoconf
[root@localhost htop]# yum install automake

再次执行 ./autogen.sh && ./configure && make
make install下
就可以成功安装htop了。

猜你喜欢

转载自blog.csdn.net/huangbaokang/article/details/83743793