[email protected] wrote: >> bogstad wrote on the wiki: >> http://mvpmc.wikispaces.com/mvpboot >>> Note: As of 12/4/2009 this version of mvpboot appears to not be >>> compatible with the version of the Net::Interface module being >>> offered by CPAN by default (version 1.011). Version 0.08 is known to >>> work on at least one system. Older versions of Net::Inteface can be >>> found at: http://cpansearch.perl.org/src/MIKER/ . >> I see versions of Net::Interface in the author's directory you link to >> above, but Net::Interface doesn't seem to show up in the >> search.cpan.org index. Net::Interface::Developer does. > > hmmm.... strange. When I use search.cpan.org and enter > Net::Interface, it appears at the top of the list with the developer > module second.
I found the problem. I cut-and-pasted the module name from above, and the second appearance has a typo in it: "Net::Inteface" > Version 0.xx is by another author that dropped support. It has very > limited functionality and runs a very few systems. > > Version 1.00 is a complete re-write and includes support for IPV6 as > well as the traditional IPV4. > > Both read and write access to network device attributes including the > creation of new logical and physical interfaces is available where > supported by the OS and this module OK, thanks for the clarification. >> The distribution still contains a module using the older package name... >> On quick glance it seems that the current Net::Interface still >> supports the API methods that mvpboot uses. (The code calls ->address >> and ->hwaddress, both in scalar context, and without arguments.) > > There are API differences between the unsupported 0.xx versions and > the new version. RTFM .... from the documentation. > > --------------------------------------------- > WARNING API CHANGE ! > > $naddr = $if->address([$family],[$index]); > @addresses = $if->address([$family]); > $bin_mac = $if->hwaddress($hwaddr); > --------------------------------------------- Right, I RTFM'ed, but as far as I can see, if we aren't passing in arguments, and use the methods in scalar context, the results should be the same. Your documentation seems to say that 1. for hwaddress(), passing in values was meaningless under the old API, and 2. address() return a lists of addresses in list context, instead of ($sa_family,$size,$naddr). Short of trying it myself, I'll have to wait for the author of the wiki comment to explain how exactly it was failing to work. >>> How to install them is unclear. >> The process should be approximately (on a UNIX-like box): >> >> cd /tmp >> wget >> http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/Net-Interface-0.11.tar.gz >> tar -xzf Net-Interface-0.11.tar.gz >> cd Net-Interface-0.11 >> perl Makefile.PL >> make install > > perl Makefile.PL > make > make test > make install Sure, but perl Makefile.PL; make install; should accomplish the same thing. Thanks for the reply. -Tom ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Mvpmc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mvpmc-users mvpmc wiki: http://mvpmc.wikispaces.com/
