Last active
October 18, 2017 14:51
-
-
Save cerealskill/bcef33702a4ed858ed38a55a28cd232d to your computer and use it in GitHub Desktop.
AutoScript to install htop (tools monitoring) para CentOS 6.x or CentOS 7.4.1708
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # @olmosleo | |
| # Leonardo Olmos F. | |
| # 30-AGO-17 | |
| # HTOP compilacion on CentOS 6.x & CentOS 7.x | |
| # AUTO-INSTALL htop tools: | |
| # (Run on root) | |
| # | |
| # git clone https://gist.github.com/bcef33702a4ed858ed38a55a28cd232d.git && cd bcef33702a4ed858ed38a55a28cd232d/ && chmod 755 htop_make_install.sh && ./htop_make_install.sh | |
| # | |
| #### Start Script ######################################### | |
| # we need install some dependends | |
| sudo yum install -y ncurses-devel wget | |
| sudo yum groupinstall -y 'Development Tools' | |
| # (problem with install wget from repository) | |
| # if you have some problem with wget please reinstall the package with: | |
| # yum remove wget && yum install wget | |
| # download the source code from the oficial repository | |
| # htop 1.0.3 (old version) | |
| # wget http://hisham.hm/htop/releases/1.0.3/htop-1.0.3.tar.gz | |
| # htop 2.0.2 (last version public) | |
| wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz | |
| # tar -vxzf htop-1.0.3.tar.gz | |
| tar -vxzf htop-2.0.2.tar.gz | |
| #cd htop-1.0.3/ | |
| cd htop-2.0.2/ | |
| # prepare to compile | |
| ./configure --prefix=/usr | |
| # compile the source | |
| make | |
| # install the binary | |
| sudo make install | |
| # execute the binary | |
| htop | |
| ######## End Script ##################################### |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HOWTO INSTALL HTOP ON YOU LINUX SANBOX
For execute the script to install htop on you linux box (last execute test on distro CentOS Linux release 7.4.1708 (Core)
Only you can do is just run the script ;-):
Aditional info
if you got the disable-unicode error but I found out that to configure correctly htop to be installed one needs to use:
./configure --disable-unicode CFLAGS=-I/home/User/usr/include CPPFLAGS=-I/home/User/usr/include CXXFLAGS=-I/home/User/usr/include LDFLAGS=-L/home/User/usr/lib