zoukankan      html  css  js  c++  java
  • 安装htop的坑

    CentOS 6.5中安装htop进程管理监控工具。

    下载最新版的HTOP http://sourceforge.net/projects/htop/ 如: wget http://sourceforge.net/projects/htop/files/latest/download 解压下载文件并且安装 如: tar -zxf htop-1.0.2.tar.gz cd htop-1.0.2 ./configure && make && make install (这时候如果没有安装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 gcc,接下来还会提示: configure: error: You may want to use --disable-unicode or install libncursesw.

    请安装yum install -y ncurses-devel) cd .. rm -rf htop-1.0.2*(这一步可做可不做啦,看你资源空间啦)

    安装htop的坑:
    1、上官网http://hisham.hm/htop/releases/下载最新的包
    2、解压缩:tar -zxvf htop-2.0.2.tar.gz;
    3、进入目标文件夹: cd htop-2.0.2
    4、./configure
    5、系统若出现以下提示,则需要安装c编译环境
    configure: error: no acceptable C compiler found in $PATH
    安装c编译环境:yum -y install gcc
    6、装完c编译环境后再进行./configure,若出现如下提示,则需要安装依赖包
    configure: error: You may want to use --disable-unicode or install libncursesw.
    yum install -y ncurses-devel
    7、接下来就是最后的安装环节:./configure&&make&&make install

  • 相关阅读:
    Jenkins的maven工程打包的时候怎么指定不同环境的配置文件
    杂记待整理
    zabbix监控网络的出入口流量
    MySQL的恢复脚本
    mysql 备份恢复图
    切割haproxy的日志
    zabbix 监控MySQL
    svn 的备份还原
    svn做目录访问控制(AuthzSVNAccessFile)
    MySQL多实例
  • 原文地址:https://www.cnblogs.com/li134655/p/8745920.html
Copyright © 2011-2022 走看看