Re: ksh: /usr/local/bin/bash: cannot execute (1330 Views)
Reply
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 1 of 7 (1,330 Views)
Accepted Solution

ksh: /usr/local/bin/bash: cannot execute

I've been struggling with a download of bash onto a 11.23 box and I'm ready to for tusc.

Here is the error:

root@fxgpd01-/var/spool/sw> /usr/local/bin/bash
ksh: /usr/local/bin/bash: cannot execute

Here are the Permissions:

root@fxgpd01-/var/spool/sw> ll /usr/local/bin/bash
-rwxr-xr-x 1 root sys 2508012 Jan 10 07:58 /usr/local/bin/bash

Here is the state of installation:

root@fxgpd01-/var/adm/sw> swlist -l fileset -a state | grep -i bash
# bash
bash.bash-RUN configured
Support Fatherhood - Stop Family Law
Honored Contributor
Patrick Wallek
Posts: 13,771
Registered: ‎06-21-2000
Message 2 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute

What's the output of:

# what /usr/local/bin/bash
# file /usr/local/bin/bash
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 3 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute


root@fxgpd01-/var/spool/sw> what /usr/local/bin/bash
/usr/local/bin/bash:
Bash version 4.1.9(1) release GNU
root@fxgpd01-/var/spool/sw>

####################

Wow. I just install 'tusc' and I'm getting the same error.

root@fxgpd01-/var/spool/sw> tusc /usr/local/bin/bash
bash: tusc: cannot execute

root@fxgpd01-/var/spool/sw> ls -la /usr/local/bin/tusc
-rwxr-xr-x 1 root sys 929296 Mar 15 2010 /usr/local/bin/tusc
root@fxgpd01-/var/spool/sw> what /usr/local/bin/tusc
/usr/local/bin/tusc:
tusc: version 8.0, 2009/11/27, Copyright (c) 1996-2009 Chris Bertin (HP)
root@fxgpd01-/var/spool/sw>

###################

I've double and triple checked everything including the link to the porting site.
Support Fatherhood - Stop Family Law
Honored Contributor
Patrick Wallek
Posts: 13,771
Registered: ‎06-21-2000
Message 4 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute

What model server? What bitness of the OS?

What are the depot names you installed from?
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 5 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute

)
root@fxgpd01-/var/spool/sw> uname -a
HP-UX fxgpd01 B.11.23 U 9000/800 166494670 unlimited-user license
root@fxgpd01-/var/spool/sw> ll /var/spool/sw
total 18192
drwxr-xr-x 3 root sys 96 Mar 7 10:48 bash
-rw-r--r-- 1 root sys 7086080 Mar 7 10:46 bash-4.1.009-ia64-11.23.depot
drwxr-xr-x 5 root sys 96 Mar 7 11:58 catalog
drwxr-xr-x 3 root sys 96 Mar 7 09:09 depothelper
-rwxr-xr-x 1 root sys 92160 Mar 7 09:08 depothelper-2.00-ia64-11.23.depot
-rwx------ 1 root sys 1126400 Mar 7 09:45 eis-sudo-1.7.4p4-1.parisc.hpux.tar.depot
drwxr-xr-x 3 root sys 8192 Mar 2 14:29 patches
-rw-r--r-- 1 root sys 2082 Mar 7 11:59 swagent.log
drwxr-xr-x 3 root sys 96 Mar 7 11:58 tusc
-rw-r--r-- 1 root sys 983040 Mar 7 11:57 tusc-8.0-ia64-11.23.depot
Support Fatherhood - Stop Family Law
Honored Contributor
Don Morris_1
Posts: 797
Registered: ‎05-08-2001
Message 6 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute

root@fxgpd01-/var/spool/sw> uname -a
HP-UX fxgpd01 B.11.23 U 9000/800 166494670 unlimited-user license

So -- PA system (9000/800).


rw-r--r-- 1 root sys 7086080 Mar 7 10:46 bash-4.1.009-ia64-11.23.depot

-rwxr-xr-x 1 root sys 92160 Mar 7 09:08 depothelper-2.00-ia64-11.23.depot

-rw-r--r-- 1 root sys 983040 Mar 7 11:57 tusc-8.0-ia64-11.23.depot

Those look like IPF-only depots. I would expect you need to find PA2.0W depots or something akin to that.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 7 of 7 (1,330 Views)

Re: ksh: /usr/local/bin/bash: cannot execute

Yep.

LOL.

Its a pa risc box that's been mislabeled.

God that was weird!!!
Support Fatherhood - Stop Family Law
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.