Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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.

CPAN>

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

Output

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 calc.pl 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
Re: Problem running Sample code in Strawberry perl
by marto (Chancellor) 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:

    C:\perl TestScriptName.pl

    From the command line, where TestScriptName.pl 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 http://learn.perl.org/

    Hope this helps

    Martin

      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 Calc.pl program it gives ERROR

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

        Martin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2014-04-17 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls