Discussion:
error while installing win32::Registry module
(too old to reply)
Jyoti
2010-03-30 06:50:39 UTC
Permalink
Dear All,
I was trying to run my script getip.pl . But when i run this script it
gives following error

C:\strawberry\perl\Test>perl GETIP.pl
Can't locate Win32/Registry.pm in @INC (@INC contains:
C:/strawberry/perl/lib C:
/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at GETIP.pl line
1.
BEGIN failed--compilation aborted at GETIP.pl line 1.

To resolve this error I downloaded module Win32-DriveInfo-0.06 from
cpan.org and used following steps to install but again shows the same
problem.


C:\strawberry\perl>cd Win32-DriveInfo-0.06

C:\strawberry\perl\Win32-DriveInfo-0.06>perl Makefile.pl
Writing Makefile for Win32::DriveInfo

C:\strawberry\perl\Win32-DriveInfo-0.06>dmake install
cp DriveInfo.pm blib\lib\Win32\DriveInfo.pm
Installing C:\strawberry\perl\site\lib\Win32\DriveInfo.pm
Appending installation info to C:\strawberry\perl\lib/perllocal.pod

C:\strawberry\perl\Win32-DriveInfo-0.06>dmake test
C:\strawberry\perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl
1..11
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
Drive C: `dir' and module returned the same
Drive D: `dir' and module returned the same
Drive F: `dir' and module returned the same
Drive G: `dir' and module returned the same
ok 11
Shlomi Fish
2010-03-30 08:36:37 UTC
Permalink
Hi Jyoti,
Post by Jyoti
Dear All,
I was trying to run my script getip.pl . But when i run this script it
gives following error
C:\strawberry\perl\Test>perl GETIP.pl
/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at GETIP.pl line
1.
BEGIN failed--compilation aborted at GETIP.pl line 1.
To resolve this error I downloaded module Win32-DriveInfo-0.06 from
cpan.org and used following steps to install but again shows the same
problem.
C:\strawberry\perl>cd Win32-DriveInfo-0.06
C:\strawberry\perl\Win32-DriveInfo-0.06>perl Makefile.pl
Writing Makefile for Win32::DriveInfo
C:\strawberry\perl\Win32-DriveInfo-0.06>dmake install
cp DriveInfo.pm blib\lib\Win32\DriveInfo.pm
Installing C:\strawberry\perl\site\lib\Win32\DriveInfo.pm
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
C:\strawberry\perl\Win32-DriveInfo-0.06>dmake test
C:\strawberry\perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl
1..11
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
Drive C: `dir' and module returned the same
Drive D: `dir' and module returned the same
Drive F: `dir' and module returned the same
Drive G: `dir' and module returned the same
ok 11
Is that everything you wanted to say? If so, it seems that everything was
successful. Are you using Strawberry Perl or ActivePerl or something else?

Regards,

Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
Shlomi Fish
2010-03-30 08:58:09 UTC
Permalink
Hi Jyoti!

Next time, please hit reply-to-all. You've sent a reply only to me. I'm CCing
the list.
hello shlomi,
yes...but i'm not able to run script in which I use win32::Registry.
Well, as opposed to some languages (BASIC/VB-Classic, Fortran, etc.) Perl is
case-sensitive.

You need to do:

<<<
use Win32::Registry;

my $obj = Win32::Registry->new();
In the exact case.

Happy Spring Holidays.

Regards,

Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
Sisyphus
2010-03-30 09:05:39 UTC
Permalink
----- Original Message -----
From: "Jyoti" <***@gmail.com>
To: <***@perl.org>
Sent: Tuesday, March 30, 2010 5:50 PM
Subject: error while installing win32::Registry module
Post by Jyoti
Dear All,
I was trying to run my script getip.pl . But when i run this script it
gives following error
C:\strawberry\perl\Test>perl GETIP.pl
/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at GETIP.pl line
1.
BEGIN failed--compilation aborted at GETIP.pl line 1.
To resolve this error I downloaded module Win32-DriveInfo-0.06 from
cpan.org and used following steps to install but again shows the same
problem.
Correct steps ... but wrong module :-)

You needed to install Win32::Registry, not Win32::DriveInfo. You can grab
the Win32::Registry source from
http://search.cpan.org/~jdb/Win32-Registry-0.10/

Cheers,
Rob
Alan Haggai Alavi
2010-03-30 08:01:45 UTC
Permalink
Hi,
Post by Jyoti
/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at GETIP.pl line
1.
BEGIN failed--compilation aborted at GETIP.pl line 1.
It means that perl is unable to find the module Win32::Registry. So,
you need to either install it or add it to @INC for perl to find it.
From checking CPAN, I read that Win32::Registry
(http://search.cpan.org/perldoc?Win32::Registry) is now obsolete use
Win32::TieRegistry (http://search.cpan.org/perldoc?Win32::TieRegistry)
instead.

Regards,
Alan Haggai Alavi.

--
The difference makes the difference

Loading...