Author Topic: Unable to run new programs on all MDs (other than core)  (Read 2252 times)

gaspala

  • Regular Poster
  • **
  • Posts: 20
    • View Profile
Unable to run new programs on all MDs (other than core)
« on: October 29, 2008, 10:44:57 pm »
I wrote a small C program to run on a MD. However, when I tried to run the program, I got 'Binary file not executable'. To make it simple, I created a new program with one line as 'main() { }'. There were no compilation error and it produced a.out file.

'file a.out' command produced
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped root@moon92:/home/public/other/

But, 'ldd a.out' command produced 'not a dynamic executable' message.

However, I have no problem running a.out on the core/hybrid. But, none of the MDs were able to run any executable I created.

On the MD I tried to run, based on the output of 'dpkg -l', libc6 and libc6-dev packages are installed.

What do I need to make these executable work in Media Directors.



totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Unable to run new programs on all MDs (other than core)
« Reply #1 on: October 30, 2008, 07:00:14 pm »
I wrote a small C program to run on a MD. However, when I tried to run the program, I got 'Binary file not executable'. To make it simple, I created a new program with one line as 'main() { }'. There were no compilation error and it produced a.out file.

'file a.out' command produced
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped root@moon92:/home/public/other/

But, 'ldd a.out' command produced 'not a dynamic executable' message.

However, I have no problem running a.out on the core/hybrid. But, none of the MDs were able to run any executable I created.

On the MD I tried to run, based on the output of 'dpkg -l', libc6 and libc6-dev packages are installed.

What do I need to make these executable work in Media Directors.




Hmmm... maybe making the copied file executable?

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk