Operating System - HP-UX
1832594 Members
2894 Online
110043 Solutions
New Discussion

Re: execute permission denied

 
Karl Haynes
Occasional Advisor

execute permission denied

I am trying to install DB2 for UDB on my HP9000 box. When I issue the ./db2setup command, I get the following:

# ./db2setup
./db2setup[20]: /karl/008_ESE_HP_3264_NLV/db2/hpux/install/../bin/db2langdir: Ex
ecute permission denied.
./db2setup[43]: /karl/008_ESE_HP_3264_NLV/db2/hpux/install/../bin/db2langdir: Ex
ecute permission denied.
./db2setup[8]: /karl/008_ESE_HP_3264_NLV/db2/hpux/install/../bin/disp_msg: Execu
te permission denied.
#

I look in the db2setup.err file and see the following:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /karl/008_ESE_HP_3264_NLV/db2/hpux/install/libdb2ure.sl: Exec format error
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.ibm.db2.install.core.NativeLibraryInitializer.initLibrary(Unknown Source)
at DB2Setup.(Unknown Source)
at DB2Setup.main(Unknown Source)

I try to check load lib dependencies and get the following:

# ldd -s libdb2ure.sl
/usr/lib/dld.sl: Bad system id for shared library: libdb2ure.sl
/usr/lib/dld.sl: Exec format error
# pwd
/karl/008_ESE_HP_3264_NLV/db2/hpux/install

I went ahead and checked file versions for both my HP9000 box and the file in question and received the following:

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

# file /karl/008_ESE_HP_3264_NLV/db2/hpux/install/libdb2ure.sl
/karl/008_ESE_HP_3264_NLV/db2/hpux/install/libdb2ure.sl: PA-RISC2.0 share
d library -not stripped
#

If the versions are different, what recourse do I have ?
Measure twice, cut once
4 REPLIES 4
Massimo Bianchi
Honored Contributor

Re: execute permission denied

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

looks like you have a 32bit hpux, maybe on 10.20, and you are attempting to install a hpux 64bit version (/karl/008_ESE_HP_3264_NLV/db2/hpux/install/libdb2ure.sl: PA-RISC2.0 share
d library -not stripped )


i suggest you to:
- check os
uname -a
- check the label on the cd of install

Massimo
Steven E. Protter
Exalted Contributor

Re: execute permission denied

1) check ownership on the executables mentioned in the error message

2) make sure you are the owner of those files

3) chmod u+x executable_name if something is wrong.

Other issue:

SHLIB_PATH is not set correctly.

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
Karl Haynes
Occasional Advisor

Re: execute permission denied

# uname -a
HP-UX hpeople1 B.11.11 U 9000/831 2012245754 unlimited-user license

# echo $SHLIB_PATH
/apps/bea/jdk131/jre/lib/PA_RISC:/apps/bea/jdk131/jre/lib/PA_RISC/classic:/usr/l
ib:

I will need to check again to see the CD version....i.e. 32 bit vs. 64-bit.

I beleive it is 32-bit but not sure.
Measure twice, cut once
Karl Haynes
Occasional Advisor

Re: execute permission denied

I just found the answer that "I was not looking for".... :(

4d) Installation requirements for DB2 servers (HP-UX)

This topic lists hardware, operating system, software and communication
requirements for DB2 servers (HP-UX).

Hardware requirements
HP 9000 series 700 or 800 system

Operating system requirements
DB2 Workgroup Server Edition and DB2 Enterprise Server Edition
can run on HP-UX 11i (11.11) for PA-RISC 2 with:
* December 2001 GOLDBASE11i bundle
* December 2001 GOLDAPPS11i bundle
* patch PHSS_26560

Since my machine is an HP900/D250 using PS_RISC 1.1, I am "out of luck" as the saying goes.............
Measure twice, cut once