LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-19-2012, 04:25 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Rep: Reputation: 35
error: unable to execute application


I have a closed application for a bus analyser that works on Mageia1 (which is on my laptop), but not on Mageia2 (which is on my desktop). When I try to launch it on M2 it just says:

error: unable to execute application

Is there any way to have Linux give me more information on why this is failing and give me a fighting chance of finding out what's happening?!

Thanks!
 
Old 07-19-2012, 04:33 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
what kind of app is that? (binary, shell script or ?). You can try to identify it using the command file
 
Old 07-19-2012, 04:37 AM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Dolphin tells me it's an executable. Looking at it in kwrite, the first few characters tell me it's an ELF file.

Last edited by DiBosco; 07-19-2012 at 04:39 AM.
 
Old 07-19-2012, 04:44 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
the command file <app> will definitely identify it (what you wrote is not really enough). Also can you tell me what is your OS? 32 or 64 bit....

Last edited by pan64; 07-19-2012 at 04:45 AM.
 
Old 07-19-2012, 04:47 AM   #5
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Quote:
[robertw@localhost data-center-linux-i686-v6.10]$ file Data\ Center

Data Center: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
32 bit OS.
 
Old 07-19-2012, 04:51 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
what says: ldd 'Data Center' ?
 
Old 07-19-2012, 04:54 AM   #7
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Ah, I knew there'd be some wonderful commands like this that might help!

Quote:
[robertw@localhost data-center-linux-i686-v6.10]$ ldd Data\ Center
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/libdl.so.2 (0xb76fe000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb76e4000)
libc.so.6 => /lib/i686/libc.so.6 (0xb7566000)
/lib/ld-linux.so.2 (0xb771f000)
 
Old 07-19-2012, 05:46 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
are you sure you have a 32 bit OS? what is the result of uname -a?
 
Old 07-19-2012, 05:48 AM   #9
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
I absolutely 100% have a 32 bit OS!
 
Old 07-19-2012, 05:50 AM   #10
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
ok, the next step could be to try strace:
strace -o <output file> Data\ Center
This will create a file. You need to check the end of that file, hopefully you can find some useful info.
 
2 members found this post helpful.
Old 07-19-2012, 06:24 AM   #11
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Excellent, that told me it was looking for libpng, installed the RPM and it works. :~)

Many thanks.
 
Old 07-19-2012, 06:38 AM   #12
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
I'm glad to help you. Pleasa mark this thread as [SOLVED].
If you really want to say thanks => click the "Add to Reputation" button.
 
Old 02-22-2018, 03:54 PM   #13
DextersHub
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
Smile

Thanks pan64 for the strace solution to find the missing lib.

In my case I was missing libgstapp-0.10.so.0 on Ubuntu 16.04.

Fixed it by installing libgstreamer0.10
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
 
Old 02-23-2018, 12:26 AM   #14
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,288

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
glad to hear that
 
  


Reply


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
"Unable to create context rendering" error whet run OpenGL application Rodnower Linux - Software 1 04-04-2010 12:35 PM
Getting error "sudo: unable to execute ./setup: Success" d_girish_d Linux - Software 3 07-20-2009 11:33 PM
unable to run c program , error : cannot execute binary file soni_silver17 Linux - Software 4 03-30-2009 08:45 AM
my application fails to execute with Kernel 2.6.28.4 sunr2007 Linux - Kernel 2 02-15-2009 10:49 AM
Unable to execute an application with wine kamlendu Linux - Software 2 06-03-2008 12:48 AM

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

All times are GMT -5. The time now is 02:46 AM.

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