Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Problem running Sample code in Strawberry perl

by rohn (Initiate)
on Sep 15, 2009 at 11:55 UTC ( #795364=perlquestion: print w/ replies, xml ) Need Help??
rohn has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, can anyone help me

I installed strawberryperl on my machine, in the menu there is cpan.bat once I click on that it opens a Command promt and the prompt shows.


Set up gcc environment - 3.4.5 (mingw-vista special r3) There seems to be running another CPAN process (pid 5728). Contacting... Other job not responding. Shall I overwrite the lockfile 'C:\Perl\cpan\.lock'? ( Y/n) y y cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help.

Then I type the command below

cpan> win32-guitest


Commands starting with "w" require CPAN::WAIT to be installed. Please consider installing CPAN::WAIT to use the fulltext index. For this you just need to type install CPAN::WAIT

how would I know win32-guitest module is installed in my machine or not ?

how can I run CPAN samples like on Cpan> client ?

Is there any reference doc available to understand CPAN client. I want to make a GUI test Automation project. Thanks in Advance. Regards, ROHN

Comment on Problem running Sample code in Strawberry perl
Replies are listed 'Best First'.
Re: Problem running Sample code in Strawberry perl
by marto (Bishop) on Sep 15, 2009 at 12:02 UTC

    As with your previous post on installing with ppm you need to know how to use the tool in question:

    cpan> install Win32::GuiTest

    Note that Perl is case sensitive. See Installing Modules

    To run a script do:


    From the command line, where is the one you want to run.

    You should read and understand Installing Modules from the tutorials section of this site. You may also want to do some more reading there regaring the basics in that area, see also

    Hope this helps


      Thanks Martin for the helo

      One Question

      Can we load ActiveState Perl & StrawberryPerl on same machine

      If yes then is my compiler getting confused as I have loaded both on same machine,

      On the CSPAN Client --> of Strawberry perl I typed the below command the output is given below, I think Strawberry perl is recognising the perl

      cpan> install Win32::GuiTest Going to read 'C:\Perl\cpan\Metadata' Database was generated on Sun, 13 Sep 2009 10:27:12 GMT Win32::GuiTest is up to date (1.56).

      But when I open the Command prompt window and try to RUN the program it gives ERROR

      perl Can't locate loadable object for module Win32::GuiTest in @INC (@INC c +ontains: C :/Perl/site/lib C:/Perl/lib .) at line 10 Compilation failed in require at line 10. BEGIN failed--compilation aborted at line 10.

      Now my Question is may be compiler is not able to trace the Strawberry Perl from command prompt so shall I uninstall Active Perl from my machine may be that solves the issue.

        Ok, it looks like you are using Strawberry Perl to install Win32::GuiTest then trying to run one of the example scripts using ActiveState Perl.

        From the command line perl -V will give you details about which version of Perl is being run. Strawberry Perl is installed to c:\strawberry by default IIRC. You need to address that issue but I think you already had a long discusion about this topic in the ChatterBox yesterday.

        I can't advise on uninstalling ActiveState Perl from your machine, because I don't know your reasons for having both versions installed.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://795364]
Approved by Bloodnok
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-11-26 14:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls