Operating System - HP-UX
1844077 Members
2879 Online
110227 Solutions
New Discussion

"Unable to resolve executable name"

 
Vineesh U S
Occasional Advisor

"Unable to resolve executable name"

Hi All,
I have created an binary using aCC. When I run it I am getting the following error

# ./abc
Unable to resolve executable name 'abc'

Any pointers?

Thanks
vineesh
9 REPLIES 9
Peter Godron
Honored Contributor

Re: "Unable to resolve executable name"

Vineesh,
can you please post the output of:
file ./abc
ll ./abc

thanks
Vineesh U S
Occasional Advisor

Re: "Unable to resolve executable name"

Hi Peter,
Here is the o/p u requested,

# file MoveUser
MoveUser: PA-RISC1.1 shared executable dynamically linked -not stripped
# ll MoveUser
-rwxr-xr-x 1 root sys 557056 Jan 27 18:36 MoveUser

Thanks
vineesh
melvyn burnard
Honored Contributor

Re: "Unable to resolve executable name"

so why are you trying to run a program called abc when the file name is MoveUser?

try doing ./MoveUser
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Vineesh U S
Occasional Advisor

Re: "Unable to resolve executable name"

Sorry, it was actually MoveUser. I just generalised it and gave abc in my first post(and forgot to replace in my second post :( )

Any pointers on this would be appreciated

thanks
vineesh
Peter Godron
Honored Contributor

Re: "Unable to resolve executable name"

vineesh,
where there any errors/warnings when you compiled? What linker are you using?
This to me looks like a unresolved reference within the code or a problem with the make script.
Can you please post a log of when you compile the code?
Thanks
ranganath ramachandra
Esteemed Contributor

Re: "Unable to resolve executable name"

doesnt look like compiler/linker/loader problem (none of them have this message in them). the message seems to be saying that it could not find the path for the executable, but in that case the message would have been a more familiar one.

this may sound silly, but still: are you sure that the message is not from the program itself ?

what shell are you using ? can you do a "strings -a" on the shell executable and see if this string is present there? this can also be done for the program itself and all the shared libraries it depends on.

another way of trying to debug is running the program under gdb or tusc.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Vineesh U S
Occasional Advisor

Re: "Unable to resolve executable name"

Hi Ranganath,
Thank you for the response.

actually I was out of this and couldn't follow up on this issue. I have taken the strings -a output and truss output. I could not see any matching strings in the strings -a output. I have attached both. Do you get any clues on this?

Your help is very much appreciated.

Thank you
Vineesh
VEL_1
Valued Contributor

Re: "Unable to resolve executable name"

Hi,

try to use ldd & chatr command to make sure all the dependant library is exist.

ldd
chatr
Stephen Keane
Honored Contributor

Re: "Unable to resolve executable name"

The clue is in the truss output

access("/usr/bin/moveuser", X_OK) ERR#2 ENOENT
access("/usr/sbin/moveuser", X_OK) ERR#2 ENOENT
access("/sbin/moveuser", X_OK) ERR#2 ENOENT

The executable is trying to run moveuser (note case!) and is searching a very limited path /usr/bin:/usr/sbin:/sbin and can't find it. You either need to add the directory that moveuser is in to your PATH, or provide a link to it in one of the above directories.

Also ensure that the executable name is indeed 'moveuser' rather than 'MoveUser', as there does seem to be some confusion! If the lowercase name is hard coded in the executable, it shouldn't be, use argv[0] instead so when the executable name changes the program won't break.