Operating System - HP-UX
1819870 Members
2493 Online
109607 Solutions
New Discussion юеВ

Perl: Wont Execute: Permission Denied

 
SOLVED
Go to solution
Karl Balsmeier
Advisor

Perl: Wont Execute: Permission Denied

How do I set the system to allow me to run perl? I am getting the following error no matter how I try to run it:

/opt/perl_64/bin/perl: Execute permission denied.

/opt/sec_mgmt/spc/bin/security_patch_check[100]: < 5 : Syntax error

"Unix is the Net"
6 REPLIES 6
John Dvorchak
Honored Contributor

Re: Perl: Wont Execute: Permission Denied

I would suggest that you chmod perl to allow execution for users and groups that you want to be able to run perl. On my systems perl is 555.
If it has wheels or a skirt, you can't afford it.
Dario_1
Trusted Contributor

Re: Perl: Wont Execute: Permission Denied

Hi!

What are the permissions?

ll /opt/perl_64/bin/perl

I think you don't have executable permissions.

Regards,

DR
Karl Balsmeier
Advisor

Re: Perl: Wont Execute: Permission Denied

It's got 777 all the way down, still no dice.
"Unix is the Net"
John Dvorchak
Honored Contributor

Re: Perl: Wont Execute: Permission Denied

Well if /opt/perl_64/bin/perl is executing then it might be helpfull to know what you are trying to run from perl. The file /opt/sec_mgmt/spc/bin/security_patch_check[100], is that the file you are calling from withing the perl script? You definately have a permission problem you will just have to ferret it out.

Maybe if you elaborated a little more than just the error outputs. Are you just typing perl at the command prompt? Do you have a script with the first line:

#!/opt/perl_64/bin/perl

or just exactly how are you trying to use perl but it's not letting you?

A little more detail please.
If it has wheels or a skirt, you can't afford it.
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl: Wont Execute: Permission Denied

Wrong architecture? Why do you need a 64bit perl anyway?

Run the script 'ux' from https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ to see if your system is 64bit capable at all.

# file /opt/perl_64/bin/perl

and the least it should be able to do is

# /opt/perl_64/bin/perl -v

to show the version

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Sorrel G. Jakins
Valued Contributor

Re: Perl: Wont Execute: Permission Denied

Do you have execute permission in the directory from which perl is called?