Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to run a quick network device inventory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to run a quick network device inventory
Authored by: demmons65 on Oct 13, '04 01:07:34PM

Checking if your kit is complete...
Looks good
Writing Makefile for Net::MAC::Vendor
cp lib/Vendor.pm blib/lib/Net/MAC/Vendor.pm
Manifying blib/man3/Net::MAC::Vendor.3
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/compile..................NOK 1# Failed test (t/compile.t at line 7)
# Tried to use 'Net::MAC::Vendor'.
# Error: Can't locate LWP/Simple.pm in @INC (@INC contains: /Users/dave/.cpan/build/Net-MAC-Vendor-0.21/blib/lib /e
# BEGIN failed--compilation aborted at /Users/dave/.cpan/build/Net-MAC-Vendor-0.21/blib/lib/Net/MAC/Vendor.pm line 50.
# Compilation failed in require at (eval 1) line 2.
FAILED--Further testing stopped: Could not compile Net::MAC::Vendor.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
# Looks like you failed 1 tests of 1.

Very strange. I think I'm going to dump the build of Tiger I'm running. Seems like lots of things are ready tow ork with it yet.


---
d a v e

http://www.hostwerks.com/~dave/



[ Reply to This | # ]
A script to run a quick network device inventory
Authored by: avarame on Oct 13, '04 04:23:05PM

Same results, 10.3.5



[ Reply to This | # ]
FIX
Authored by: avarame on Oct 13, '04 04:26:17PM

For some reason, Net::MAC::Vendor depends on LWP::Simple, but doesn't error if LWP::Simple isn't installed (probably because it only needs it for (nonessential) tests). Just run install LWP::Simple first, and follow all its dependencies.



[ Reply to This | # ]
FIX
Authored by: timhaigh on Oct 13, '04 05:19:41PM

Sorry to say your fix doesn't work for me on 10.3.5.

I get this error.

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/compile..................ok
t/extract_oui_from_html....ok
t/fetch_oui................"my" variable $oui masks earlier declaration in same statement at t/fetch_oui.t line 22.
syntax error at t/fetch_oui.t line 20, near "$oui ( "
syntax error at t/fetch_oui.t line 28, near "}"
Execution of t/fetch_oui.t aborted due to compilation errors.
# Looks like your test died before it could output anything.
t/fetch_oui................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/normalize_mac............ok
t/parse_oui................ok
t/pod......................skipped
all skipped: Test::Pod 1.00 required for testing POD
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/fetch_oui.t 255 65280 7 14 200.00% 1-7
1 test skipped.
Failed 1/6 test scripts, 83.33% okay. 7/22 subtests failed, 68.18% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force



[ Reply to This | # ]
FIX ... Not!!
Authored by: ssevenup on Oct 13, '04 08:28:00PM

Same here on 10.3.5

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
A script to run a quick network device inventory
Authored by: soulrider2k on Oct 13, '04 04:27:28PM

Same error here on 10.3.5


Any clues?

---
soulrider2k



[ Reply to This | # ]
force install
Authored by: sfederman on Oct 13, '04 10:07:54PM

I force installed Net::MAC::Vendor, and it appears to work fine...



[ Reply to This | # ]
force install
Authored by: uurf on Oct 13, '04 10:19:17PM

how'd you do that? It wouldn't go for it even after su'ing to root.



[ Reply to This | # ]
force install
Authored by: sfederman on Oct 14, '04 12:39:21AM

I didn't do anything special, I just was able to sudo cpan, then force install Net::MAC::Vendor. This worked for me on 2 different systems, each of which have 10.3.5 installed...



[ Reply to This | # ]
force install
Authored by: Poolart on Oct 14, '04 04:56:00AM

Please tell us the command line you use, to force install



[ Reply to This | # ]
force install
Authored by: sfederman on Oct 14, '04 04:35:56PM
Here's what I typed

$ sudo cpan
cpan> force install Net::MAC::Vendor

I've already done this, so I cannot show you the install log. Unfortunately, I did not save it...

[ Reply to This | # ]