zoukankan      html  css  js  c++  java
  • 在阿里云Ubuntu 14.04.5 LTS下安装nethogs0.8.5

      由于默认安装的nethogs不能使用,提示:Creating socket failed while establishing local IP - are you root? 搜索资料后检查当前版本为0.8.0 决定重新安装其它版本。

      卸载当前版本:apt-get remove nethogs

      安装依赖:

    apt-get install build-essential libncurses5-dev libpcap-dev

      下载新版本:wget -c https://github.com/raboof/nethogs/archive/v0.8.5.tar.gz

      解压:tar xf v0.8.5.tar.gz

      安装:make install

      出现错误提示:fatal error: pcap.h: No such file or directory 

      重新安装 libcap-dev无果,只能重新下载libcap其它版本进行安装。

      wget -c http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz

      解压libcap: tar xf libpcap-1.8.1.tar.gz

      安装: ./configure  校验出现 nethogs: error while loading shared libraries: libpcap.so.1: cannot open shared object file

      修改 /etc/ld.so.conf 文件,通过 locate libpcap.so.1 获得路径 ,增加一行

             /usr/lib locate获得的路径 

      重新执行 ./configure 

      执行 make

      执行 make install

      再次安装nethogs: 切换到nethogs目录下,执行make install

      至此安装成功。

  • 相关阅读:
    python3--shelve 模块
    python3--常用模块
    python3 时间复杂度
    Python3 正则表达式
    python--冒泡排序
    python3--正则表达式
    python3--算法基础:二维数组转90度
    python3--算法基础:二分查找/折半查找
    python3--递归
    dedecms单独调用指定文章
  • 原文地址:https://www.cnblogs.com/justbeginning/p/11039545.html
Copyright © 2011-2022 走看看