Skip to content

Building htop

aborkar-ibm edited this page Feb 12, 2019 · 36 revisions

Building htop

Below versions of htop are available in respective distributions at the time of creation of these build instructions.

  • Ubuntu 16.04 has 2.0.1
  • Ubuntu 18.04 has 2.1.0

The instructions provided below specify the steps to build htop v2.2.0 on Linux on IBM Z for following distributions:

  • RHEL (6.10, 7.4, 7.5, 7.6)
  • SLES (12 SP3, 15)
  • Ubuntu (16.04, 18.04)

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it.

1. Install the dependencies

  • RHEL (6.10, 7.4, 7.5, 7.6)

     sudo yum install ncurses ncurses-devel gcc make wget tar python
  • SLES (12 SP3, 15)

     sudo zypper install ncurses ncurses-devel gcc make wget tar python awk
  • Ubuntu (16.04, 18.04)

     sudo apt-get install gcc make wget tar libncursesw5 libcunit1-ncurses libncursesw5-dev python

2. Download and unpack the htop 2.2.0 source code

    cd /<source_root>/
    wget http://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz
    tar xvzf htop-2.2.0.tar.gz

3. Configure and build htop-2.2.0

    cd /<source_root>/htop-2.2.0
    ./configure
    make

4. Run test cases if any(optional)

    make check

5. Install htop

    sudo  make install

6. Launch htop to monitor system

    htop 

Note: For a list of supported key commands see the manual page man htop on ubuntu.

References:

Clone this wiki locally