Operating System - Linux
1752577 Members
5053 Online
108788 Solutions
New Discussion юеВ

Re: Python Installation - Execute Permissions

 
SOLVED
Go to solution
GBR
Regular Advisor

Python Installation - Execute Permissions

I've just installed 2.4.3 on my HP-UX 11i v1 box. I'm getting an execute permission denied error when I try running the command 'python'. The executable is in my path. Any ideas?

Thanks,
Greg
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: Python Installation - Execute Permissions

Shalom,

ll /filename

what /filename

Make sure you have PA-RISC executables. IA64 will not work on 11.11

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

# ll /usr/bin/python

lrwxr-xr-x 1 root sys
1 Jul 19 17:59 /usr/bin/python -> /usr/local/bin/python

# what user/bin/python

/usr/bin/python:
$Revision: 92453-07 linker linker crt0.o B.11.43 050125 $

And... I'm not sure how to check that I have PA-RISC executables.

GBR

OldSchool
Honored Contributor

Re: Python Installation - Execute Permissions

Command "file /usr/bin/python" should say something along the lines of "PA-RISC 2.0 executable...."

If it says something about ELF, you've got the wrong python.
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

# file /usr/bin/python

/usr/bin/python: PA-RISC2.0 shared executable dynamically linked -not stripped

GBR
melvyn burnard
Honored Contributor

Re: Python Installation - Execute Permissions

what machine is this? it may be a PARISC 1.x server, in which case you will get this due to using an executable compiled on a PARISC 2.0 server
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

Melvyn,

CPU Version: PA 7200-7200 CPU 13
Hardware Model: 9000/821/D250
Kernel Width Support: 32

So should I be looking for a PARISC 1.x compilation?

GBR
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

By running the follwing command:

# file /stand/vmunix

/stand/vmunix: PA-RISC1.1 executable -not stripped

I will now go looking for a compiled executable for a PA-RISC1.1

GBR
melvyn burnard
Honored Contributor
Solution

Re: Python Installation - Execute Permissions

Greg
Yes, you have a PARISC 1.x server, you need the version compiled for that.
As you have the PARISC 2.0 compiled version, you will get the error you are seeing
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

Can any PA-RISC 2 compiled code run on PA-RISC 1.1? or do I have to compile all the code on my system for the PA-RISC 1.1 architecture to work properly. I ask because I installed Perl with for PA-RISC 2.0 and it seems to work.

GBR