Subject: | cannot find the route command |
Seen on a debian:9 system:
...
# Failed test 'use Net::IP::Route::Reject;'
# at t/001_load.t line 7.
# Tried to use 'Net::IP::Route::Reject'.
# Error: cannot find the route command at /home/cpansand/.cpan/build/2020022909/Net-IP-Route-Reject-0.5-0/blib/lib/Net/IP/Route/Reject.pm line 73.
# Compilation failed in require at t/001_load.t line 7.
# BEGIN failed--compilation aborted at t/001_load.t line 7.
Sat Feb 29 09:16:13 2020 failed to add reject route for 1.1.1.1 (maybe its already listed?)
at t/001_load.t line 9.
Sat Feb 29 09:16:13 2020 failed to add reject route for 1.1.1.1 (maybe its already listed?)
at t/001_load.t line 11.
# Looks like you failed 1 test of 2.
t/001_load.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
...
Indeed, there's no route command available here:
$ which route
route not found
Probably the alternative on newer Debians is to use the "ip route" command:
$ ip route
default via 10.0.0.254 dev eth0 onlink
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.2