GTi Giant has asked for the wisdom of the Perl Monks concerning the following question:

I have been searching the threads and have not found my answer yet. Please excuse my "newbie-ness".... I am running v5.6.1 build 631. I have tried to install David Roth's AdminMisc extension for Win32 Perl and when I try to run the test.pl, it provides me with errors:

Can't locate loadable object for module Win32::AdminMisc in @INC (@INC contains: f:/perl/lib f:/perl/site/lib .) at test.pl line 6
Compilation failed in require at test.pl line 6.
BEGIN failed--compilation aborted at test.pl line 6.


Here are the top few lines of test.pl:
# T e s t . p l # ------------- # This is a test perl script designed to demonstrate some of + the # functions of Win32::AdminMisc. use Win32::AdminMisc; use Win32; if ($Win32::AdminMisc::Version < 971022){ print "THIS VERSION OF WIN32::ADMINMISC IS TOO OLD TO WORK WIT +H THIS SCRIPT.\n"; exit; } $Node = Win32::NodeName(); $Domain = Win32::DomainName(); $User = Win32::LoginName(); $User = 'administrator'; $Domain = '';
TIA-
Jake

Replies are listed 'Best First'.
Re: Issues w/ AdminMisc
by tachyon (Chancellor) on Apr 09, 2002 at 13:58 UTC

    @INC contains the paths that perl searches for installed modules. Line 6 is the use Win32::AdminMisc; line so either this module is not installed or you have installed it in an odd location. See A guide to installing modules

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Issues w/ AdminMisc
by strat (Canon) on Apr 09, 2002 at 14:22 UTC
      Taken directly from the readme, these are the steps I followed:
      I N S T A L L A T I O N: ------------------------ If you are using the ActiveState Win32 Perl... 1) Copy AdminMisc.pm to the <perldir>\lib\win32 directory. 2) Create a <perldir>\lib\auto\win32\adminmisc directory. 3) Rename AdminMisc310.pll to AdminMisc.pll and copy it to the <perldir>\lib\auto\win32\adminmisc directory. *IF you are using a build of Perl that is not compliant with th +e build of adminmisc that comes with this archive then you need +to download a compatible version. See "Parse Exception Error" bel +ow. 4) You are all ready to use the module. Look at the test.pl script for an examples.
Re: Issues w/ AdminMisc
by Biker (Priest) on Apr 09, 2002 at 14:12 UTC

    Since you're trying to install AdminMisc and the test script for AdminMisc cannot load the AdminMisc module, the preceeding installation must have failed.

    Can you show us the steps you have taken before running the test script?


    Everything went worng, just as foreseen.