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

Activerperl permissions error win 7 64 bit vanilla install

by hugeness (Initiate)
on Mar 29, 2012 at 19:52 UTC ( #962473=perlquestion: print w/ replies, xml ) Need Help??
hugeness has asked for the wisdom of the Perl Monks concerning the following question:

Just started learning perl.. installed activeperl fine, trying to run my first file

perl> perl -w hello.pl or perl> perl hello.pl

both give access is denied. I am running from the cmd prompt.. c:\> I have copied the file to the bin, and to the root of the activeperl folder. I am setup as administrator on the local machine, and the file has permissions set to allow full control. any pointers appreciated. thank you

Comment on Activerperl permissions error win 7 64 bit vanilla install
Download Code
Re: Activerperl permissions error win 7 64 bit vanilla install
by marto (Bishop) on Mar 29, 2012 at 19:59 UTC

    Welcome, and thanks for taking the time to format your post correctly. Could you please post the contents of hello.pl?

Re: Activerperl permissions error win 7 64 bit vanilla install
by thezip (Vicar) on Mar 29, 2012 at 19:59 UTC
    What does this emit?
    perl> perl -v

    What can be asserted without proof can be dismissed without proof. - Christopher Hitchens, 1949-2011
Re: Activerperl permissions error win 7 64 bit vanilla install
by ww (Bishop) on Mar 29, 2012 at 20:59 UTC

    And, raising another possibility, M$' "Access Control" may be getting in your way... as it does not always behave as you might expect, despite your "Admin" status.

    But from your description, you did put \Perl\bin in your path. That's good.

    However, your "hello.pl" file does NOT belong in "C:\Perl\bin" or "C:\Program Files\Perl\bin" because that's for Perl itself.

    Instead, create another directory, outside the AC restricted zone... perhaps, "C:\Libraries\scripts" or, better yet, "D:\scripts" and try running "hello.pl" from there.

      Hi thanks for response..

      #!/usr/bin/perl -w print "Hello, World!\n";

      is my script..

       perl> perl -v

      just goes back to the command prompt.. I have right clicked on the cmd icon in the start menu, copied to desktop and set properties so am running the command as administrator. I have reinstalled the application 3 times.

      I tried moving the file to an external drive..

      Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\windows\system32>cd.. C:\Windows>cd.. C:\>e: E:\>perl>hello2.pl

      just hangs

        If running "perl -v" "just goes back to the command prompt (without any error message from 'doze?) you have a problem that I can't grok at the moment.

        If cmd.exe didn't find perl it would be expected to spit out a complaint on the order of "perl is not recognized as an internal or external command, operable program or batch file."

        But, OTOH, if cmd found perl and perl didn't respond to your request for version information, that would say Perl itself is broken. Yet that seems to be at odds with the "Access denied" message you reported earlier.

        So, without a clue, perhaps you'll answer the question above... and report what Win7 tells you when you enter "path" at the command prompt, and what distribution of Perl you've installed repeatedly (and whether you were careful about removing all traces of the previous version on each re-install).

        HTH ...but I'm not wildly optomistic :(

         E:\>perl>hello2.pl

        You're overwriting hello2.pl

        You're supposed to type     perl hello2.pl  

        perl as in perl.exe or C:\perl\bin\perl.exe or c:\strawberry\perl\bin\perl.exe ...

        More on this in perlrun,Behind the GUI lives the Shell (enable javascript for images)

        Perhaps I misinterpreted what your command prompt looks like. If you're doing something like:
        C:\ perl> perl -v

        ... then that's not even close to what I meant, and I'm quite sure I don't want to try it to see what happens.

        Here's what I meant for you to try, for whatever your command prompt is:

        perl -v

        What can be asserted without proof can be dismissed without proof. - Christopher Hitchens, 1949-2011

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-12-26 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls