LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2008, 09:57 AM   #1
Linux von Scratchen
LQ Newbie
 
Registered: Jun 2006
Location: orbiting around Saturn
Distribution: LFS, knoppix
Posts: 16

Rep: Reputation: 0
Question executable not found, but is there plain as day


One one computer i have an executable, let's say it's named "crazy" since that's how it's acting. When i go into the directory where it is and type "./crazy" i get "No such file or directory". It has executable permissions, proper ownership, as does the directory it's in. If i try the ldd command on it, that too says there's no such file. it won't run in a debugger, even.

On another machine, the same file exists in the same place and it runs fine. Same size file, same permissions, etc., nothing at all different.

Somewhere, something is different between these two machines. Anyone have any idea where to look, what it's likely to be?
 
Old 07-23-2008, 10:00 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Need more actual information about this command, permissions, etc or we'll just think you're smoking crack or something.
 
Old 07-23-2008, 10:00 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
It sounds crazy! How did you determine it has proper ownership and permissions? Is the ls command able to see it?
 
Old 07-23-2008, 10:01 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by trickykid View Post
or we'll just think you're smoking crack or something.
Is this allowed by the LQ rules?
 
Old 07-23-2008, 10:14 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by colucix View Post
Is this allowed by the LQ rules?
Sure, why not? Not like I'm making a personal attack but rather adding humor to the discussion to drag out more info so we can help the OP..

Remember, freedom of speech as long as you're not making personal attacks upon others.
 
Old 07-23-2008, 10:15 AM   #6
Linux von Scratchen
LQ Newbie
 
Registered: Jun 2006
Location: orbiting around Saturn
Distribution: LFS, knoppix
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
It sounds crazy! How did you determine it has proper ownership and permissions? Is the ls command able to see it?

permission is -rwxr-xr-x which means anyone should be able to run it. ls sees it fine, as does any command that deals with files other than executing them.
 
Old 07-23-2008, 10:42 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by trickykid View Post
Sure, why not? Not like I'm making a personal attack but rather adding humor to the discussion to drag out more info so we can help the OP..

Remember, freedom of speech as long as you're not making personal attacks upon others.
Yeah, I agree. I was just talking about LQ members making use of crack or other chemicals!
 
Old 07-23-2008, 10:45 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by colucix View Post
Yeah, I agree. I was just talking about LQ members making use of crack or other chemicals!
Well, that's their decision. Remember, it's not breaking the law until you get caught..
 
Old 07-23-2008, 10:46 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Linux von Scratchen View Post
permission is -rwxr-xr-x which means anyone should be able to run it. ls sees it fine, as does any command that deals with files other than executing them.
Is there any special attribute assigned to this file?
Code:
lsattr filename
 
Old 07-23-2008, 10:47 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Linux von Scratchen View Post
permission is -rwxr-xr-x which means anyone should be able to run it. ls sees it fine, as does any command that deals with files other than executing them.
So why is this command so secret? Without any other information and the information provided, I agree, you should be able to run this command. I can't go beyond that without knowing any more details of this file, program, where it's located, exact full permissions... blah blah blah.. and so on..
 
Old 07-23-2008, 11:33 AM   #11
smoked kipper
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware,Slamd64
Posts: 81

Rep: Reputation: 15
If you have a binary that fails to run with: No such file or directory, it generally means that the file cannot even be loaded, which usually means that the dynamic linker can't be found. ldd actually executes the file in order to list the libraries it uses, so if even ldd doesn't work, this is often the problem.

Try something like

hexdump -C ./crazy | grep -A5 /lib

to pull out whatever dynamic linker it was linked against. Ordinarily, it will be /lib/ld-linux.so.2 but perhaps it's an old binary or it's not linked against glibc (uclibc maybe?).

(hexdump, of course is just to prevent random binary characters being printed to the screen).

If that doesn't find it, try

hexdump -C ./crazy | head -n 50

the linker should be near the start of the file, so this should show it up.
 
Old 07-23-2008, 11:42 PM   #12
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
well it could also be a script that doesn't have the correct #! line so its actually complaining about not finding say perl or python
 
Old 07-24-2008, 12:08 AM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
more info please
the EXACT FULL path
the os , fedora,slac,ubantu ,...
is it a script ( with or without ".sh")
and it's name
 
Old 07-24-2008, 01:55 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
indeed, also,

ls -lt filename

file filename
 
Old 07-27-2008, 01:31 PM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
had a similar problem and had to replace non apha/numeric characters with a ? character.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
version GLIBC_2.3 not found error when cross compiled executable is run on targert sateeshgalla Programming 3 05-14-2008 10:42 AM
LXer: Document Freedom Day is more than a single day LXer Syndicated Linux News 0 03-26-2008 09:20 PM
Run commands found in plain text file splunk Linux - Software 6 02-02-2008 11:15 AM
Machine boots one day, the next day it won't (is my power supply dying?). Hungry ghost Linux - General 12 12-18-2007 10:00 AM
the rlpr not found in ur executable path check ur installtion bhajan.verma Linux - Networking 2 09-18-2006 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration