make install fping

make install fping

stup

  1. download the source code in website : http://fping.org/

    wget http://fping.org/dist/fping-3.13.tar.gz

  2. unzip the source code zip : fping-3.13.tar.gz

    tar -xvf fping-3.13.tar.gz

  3. change to fping-3.13 install directory

    cd fping-3.13

  4. Run ./configure with the correct arguments (see: ./configure --help)

    ./configure

  5. Run make; make install

    make

    make install

    if display that error message like this at last line :
    Makefile:357: recipe for target 'install-recursive' failed
    and you should use super user right install

    sudo make install

    if you try to run like below and not run the next point will trouble in this situation.

    fping -v (null):
    can't create socket (must run as root?) :
    Permission denied

    and then you try like this

    sudo fping -v
    fping: command not found

  6. Make fping either setuid, or, if under Linux: sudo setcap cap_net_raw+ep fping

    chown root:root /usr/local/sbin/fping
    chmod u+s /usr/local/sbin/fping

  7. Have a look at the fping(8) manual for usage help
    (fping -h will also give a minimal help output)

    fping -h
    fping -v

sumary

this is a good try, but I still don't kown how to complete the step:

if under Linux: sudo setcap cap_net_raw+ep fping

转载于:https://www.cnblogs.com/Ilovezilian/p/5849188.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值