Operating System - HP-UX
1760034 Members
3763 Online
108889 Solutions
New Discussion юеВ

interpreter not found error

 
SOLVED
Go to solution
Shehryar
Advisor

interpreter not found error

Hi,

I have two HP-UX 11.23 servers and I am trying to activate SSL on these. On one of the servers, it works fine and the SAP's SSL library libsapcrypto.so loads fine. On this server, I can also execute ./sapgenpse -h to take a look at the output Moreover, ldd libsapcrypto.so returns:

ldd libsapcrypto.so
libpthread.so.1 => /usr/lib/hpux64/libthread.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1

But on the other server, I am getting an Out of Memory error when I run ldd libsapcrypto.so.
Moreover, when I try to run ./sapgenpse, I am getting:

interpreter "*******************
" not found
exec(2): could not load a.out

Can anyone suggest what might be wrong?

Thanks and regards
11 REPLIES 11
Fabian Brise├▒o
Esteemed Contributor

Re: interpreter not found error

Kenan Erdey
Honored Contributor

Re: interpreter not found error

Hi,

how is your memory usage. look at swapinfo -tam output.

Kenan.
Computers have lots of memory but no imagination
Dennis Handly
Acclaimed Contributor

Re: interpreter not found error

>I am getting an Out of Memory error when I run ldd libsapcrypto.so.

Check your swapspace with "swapinfo -tam". This may cause the interpreter error.
You can check the interpreter with:
elfdump +interp ./sapgenpse
Shehryar
Advisor

Re: interpreter not found error

Thanks for all your responses. SWAPINFO looks fine. We have 35GB swap space for SAP and only 1% is used. The memory is 24% used.

elfdump +interp ./sapgenpse returns an empty line and then ./sapgenpse on the second line. What does that mean?

Regards
Bill Hassell
Honored Contributor

Re: interpreter not found error

> sapgenpse

Is this a script (ie, ASCII file, try head sapgenpse | vis)? If you see \r characters, the file has been pulled from a PC. This message shows up when the first line has #!/something (in ASCII) but is not terminated correctly as in binary transfer from a PC. PCs require CR/LF at every end of line while Unix requires just LF. So in that case, the interpreter name ends with the CR character and the OS can't find it.

You can fix the file with dos2ux as in:

dos2ux > tempfile
mv tempfile sapgenpse


Bill Hassell, sysadmin
Shehryar
Advisor

Re: interpreter not found error

Hi,

# head sapgenpse | vis
\177ELF\002\002\001\001\001=\300_`\022\200\220\240ge\200#

# file sapgenpse
sapgenpse: ELF-64 executable object file - IA64


# elfdump +interp ./sapgenpse

./sapgenpse:

Any ideas what might be wrong? The file has been copied from server where it runs fine.

Regards
Dennis Handly
Acclaimed Contributor
Solution

Re: interpreter not found error

# elfdump +interp ./sapgenpse
>The file has been copied from server where it runs fine.

What does the above command show on the other server? What does "file ./sapgenpse" show?
Shehryar
Advisor

Re: interpreter not found error

Thanks. It seems there was something wrong with the FTP software I was using as it seemed to corrupt files during tranfer. I have changed that system starts fine now.

Thanks for all your help.
Shehryar
Advisor

Re: interpreter not found error

Files were being corrupted by the FTP software. Using a different software resolved the issue.