LinuxQuestions.org
Help answer threads with 0 replies.
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 03-01-2017, 10:47 AM   #1
Vido
Member
 
Registered: Mar 2014
Posts: 38

Rep: Reputation: Disabled
bash ./ no such file or directory, how to find what missing?


Hi,
Im truing to run idaq but when I do that Im getting error
Code:
$ ./idaq
bash: ./idaq: No such file or directory
So I google it and found that it maybe missing some shared libs so I investigate it

Code:
$ readelf -d idaq | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libida.so]
 0x00000001 (NEEDED)                     Shared library: [libQtXml.so.4]
 0x00000001 (NEEDED)                     Shared library: [libQtGui.so.4]
 0x00000001 (NEEDED)                     Shared library: [libQtCore.so.4]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
all libas are presented so what Im missing here ?
 
Old 03-01-2017, 10:49 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
What is the output of this:

Code:
stat idaq
 
Old 03-01-2017, 10:53 AM   #3
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
What is the output of this:

Code:
stat idaq
Code:
stat ./idaq
  File: './idaq'
  Size: 3501788   	Blocks: 6840       IO Block: 4096   regular file
Device: 815h/2069d	Inode: 32743       Links: 1
Access: (0777/-rwxrwxrwx)  Uid: ( 1000/slobodan)   Gid: ( 1000/slobodan)
Access: 2017-03-01 16:45:54.563092900 +0100
Modify: 2015-12-24 04:41:27.000000000 +0100
Change: 2017-03-01 16:24:40.428512500 +0100
 Birth: -
There is allso x64bit version but its same deal

Code:
$ ./idaq64 
bash: ./idaq64: No such file or directory

Last edited by Vido; 03-01-2017 at 10:58 AM.
 
Old 03-01-2017, 10:56 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
What is the output of:

Code:
file idaq
uname -a
 
Old 03-01-2017, 11:00 AM   #5
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
What is the output of:

Code:
file idaq
uname -a
Code:
file idaq
idaq: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=cb4206d57fa4791114a9ba3958922bf541d95725, stripped
Code:
$ uname -a
Linux G31M-ES2L 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
 
Old 03-01-2017, 11:17 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
Looks to me like you might be missing the required loader. You have a 64 bit linux system and you are attempting to run a 32 bit binary. In some distributions there is a 32 bit package/compatibility package you can install to run 32 bit on 64 bit. In ubuntu land this would be like this:

http://askubuntu.com/questions/45425...-ubuntu-64-bit
 
Old 03-01-2017, 11:36 AM   #7
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Looks to me like you might be missing the required loader. You have a 64 bit linux system and you are attempting to run a 32 bit binary. In some distributions there is a 32 bit package/compatibility package you can install to run 32 bit on 64 bit. In ubuntu land this would be like this:

http://askubuntu.com/questions/45425...-ubuntu-64-bit
Yes i come across that article and I have all packages (which was suggested) installed

Edit:

Thre program idaq was working just fine a day ago

Last edited by Vido; 03-01-2017 at 11:43 AM.
 
Old 03-01-2017, 11:41 AM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
Did you try running it directly with the loader then? Something like:

Code:
/lib/ld-linux.so.2 /home/user/idaq
 
Old 03-01-2017, 11:49 AM   #9
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Did you try running it directly with the loader then? Something like:

Code:
/lib/ld-linux.so.2 /home/user/idaq
Code:
$ /lib/ld-linux.so.2 ./idaq
bash: /lib/ld-linux.so.2: No such file or directory
 
Old 03-01-2017, 12:01 PM   #10
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Yes somehow ld-linux.so.2 is missing after

Code:
sudo apt-get install --reinstall libc6
it works, thanks a lot szboardstretcher without your help I could not solve this, cheers mate
 
  


Reply

Tags
bash, error message


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
find the largest and smallest file in a directory and sub directory schandran Programming 5 05-06-2015 09:53 AM
stdio.h: No such file or directory. file is missing during gcc complile. culser Linux - Software 4 03-03-2011 01:59 PM
bash - find newest file in a directory onesandzeros Linux - General 2 08-24-2010 06:21 PM
Script to find file differences in two directory trees (bash) Syqers Linux - Newbie 3 10-01-2008 11:55 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM

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

All times are GMT -5. The time now is 01:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration