Python Installation - Execute Permissions (439 Views)
Reply
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 1 of 14 (439 Views)
Accepted Solution

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 14 (439 Views)

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
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 3 of 14 (439 Views)

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

Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 4 of 14 (439 Views)

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.
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 5 of 14 (439 Views)

Re: Python Installation - Execute Permissions

# file /usr/bin/python

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

GBR
HP Pro
melvyn burnard
Posts: 6,068
Registered: ‎04-06-1997
Message 6 of 14 (439 Views)

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!
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 7 of 14 (439 Views)

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
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 8 of 14 (439 Views)

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
HP Pro
melvyn burnard
Posts: 6,068
Registered: ‎04-06-1997
Message 9 of 14 (439 Views)

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!
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 10 of 14 (439 Views)

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
HP Pro
melvyn burnard
Posts: 6,068
Registered: ‎04-06-1997
Message 11 of 14 (439 Views)

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!
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 12 of 14 (439 Views)

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
Acclaimed Contributor
Dennis Handly
Posts: 25,274
Registered: ‎03-06-2006
Message 13 of 14 (439 Views)

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".
Regular Advisor
Regular Advisor
GBR
Posts: 202
Registered: ‎05-16-1996
Message 14 of 14 (439 Views)

Re: Python Installation - Execute Permissions

Thanks to all.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.