Operating System - Linux
1828658 Members
7200 Online
109983 Solutions
New Discussion

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
melvyn burnard
Honored Contributor

Re: Python Installation - Execute Permissions

well the simple answer is it depends.
I say that as I have seen this origionally where Oracle binaries are compiled on a PARISC 2.0 serevr, then copied to a PARISC 1.x server.
Some of the exectuables wporked, others failed with exactly the same symptoms you see. I am not exactly a compiler or language expert, so I do not have a definitive answer as to why.
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

But if you were rebuilding this old box, would you be recommending compiling the source for each app, so I don't end up with issue downs the road? From what I can see it hard to find compiled binaries for PA-RISC 2.0, so I pretty much have no option.

I'm new to the Unix world of installing apps, and I'm assuming that if perform the compilation right on the box, to do the install, that it will work way better than trying to install the PA-RISC 2.0 depots.

GBR
Dennis Handly
Acclaimed Contributor

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.

No. Yes, you should compile with +DAportable.

> I ask because I installed Perl with for PA-RISC 2.0 and it seems to work.

I don't see how. Unless it just says for PA2.0 and not "Only for PA 2.0".
GBR
Regular Advisor

Re: Python Installation - Execute Permissions

Thanks to all.