News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Unable to run new programs on all MDs (other than core)

Started by gaspala, October 29, 2008, 10:44:57 PM

Previous topic - Next topic

gaspala

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

Quote from: gaspala 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.




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 [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]