Page 1 of 1

Launching an app in LINUX

Posted: Wed Oct 03, 2012 3:42 pm
by livecodeuser1987
I have a demo app.I could compile a standalone and run it successfully on windows and MAC.
How do I launch the app in LINUX??(double clicking it doesnot open??).I am using CentOS.
Thanks in advance.

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 5:19 pm
by FourthWorld
Did you build the app on Linux, or on another platform and then copied it to Linux?

If the latter, you may need to set the executable bit in the app file's permissions. I'm not familiar with CentOS' UI, but in Ubuntu you can right-click on the file and select "Properties".

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 5:28 pm
by mwieder
...and if that fails, open a terminal prompt and type

Code: Select all

chmod 777 nameOfYourProgram

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 6:00 pm
by Thierry
a bit more secure:

chmod 755 nameOfYourProgram

Thierry

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 6:02 pm
by softsys
mwieder wrote:...and if that fails, open a terminal prompt and type

Code: Select all

chmod 777 nameOfYourProgram
Don't do this, 777 will allow anyone to overwrite your appz.

You should use
chmod 755 nameOfYourProgram

and make sure the owner of nameOfYourProgram is not apache

Regards,

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 6:07 pm
by livecodeuser1987
Thankyou all.
It throws "cannot execute binary file" error.
doing chmod did not fix it:(
I am trying to implement this app on a raspberry pi(Debian OS).

Re: Launching an app in LINUX

Posted: Wed Oct 03, 2012 6:23 pm
by mwieder
My Raspberry Pi is still backordered :(
But I doubt that will work for you. The Pi uses an ARM processor and the linux build is for Intel.

Re: Launching an app in LINUX

Posted: Thu Oct 04, 2012 7:16 pm
by livecodeuser1987
Figured it..
had to yum install ld-linux.so.2 (and other dependencies)
Thankyou all for your suggestions.

Re: Launching an app in LINUX

Posted: Fri Oct 05, 2012 4:31 am
by deebee
I am using CentOS
I am trying to implement this app on a raspberry pi(Debian OS)
Figured it
By "figured it" did you mean you got it to execute on CentOS or did you actually get it to run on a Raspberry Pi? :shock:

Re: Launching an app in LINUX

Posted: Fri Oct 05, 2012 5:01 am
by SoapDog
You can't run on ARM Linux... unless you are emulating x86 Linux...

Re: Launching an app in LINUX

Posted: Fri Oct 05, 2012 4:08 pm
by livecodeuser1987
I wanted to run my App on Rarspberry Pi.I could not.
But could only get it working on Cent OS.
Thanks SoapDog and AndreGarcia for the suggestions.

Re: Launching an app in LINUX

Posted: Tue Jul 23, 2013 3:01 pm
by aircooled76
Just wanted to add my voice... The ability to have an ARM Linux build would be AWESOME!!!

Re: Launching an app in LINUX

Posted: Tue Jul 23, 2013 3:52 pm
by FourthWorld
An early test build of the ARM compile for Linux is linked to from this article:
http://livecode.com/blog/2013/02/20/liv ... pberry-pi/