Launching an app in LINUX

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
livecodeuser1987
Posts: 4
Joined: Mon Mar 19, 2012 3:21 pm

Launching an app in LINUX

Post 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.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Launching an app in LINUX

Post 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".
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Launching an app in LINUX

Post by mwieder »

...and if that fails, open a terminal prompt and type

Code: Select all

chmod 777 nameOfYourProgram
Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Launching an app in LINUX

Post by Thierry »

a bit more secure:

chmod 755 nameOfYourProgram

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
softsys
Posts: 1
Joined: Wed Oct 03, 2012 5:53 pm

Re: Launching an app in LINUX

Post 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,
livecodeuser1987
Posts: 4
Joined: Mon Mar 19, 2012 3:21 pm

Re: Launching an app in LINUX

Post 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).
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Launching an app in LINUX

Post 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.
livecodeuser1987
Posts: 4
Joined: Mon Mar 19, 2012 3:21 pm

Re: Launching an app in LINUX

Post by livecodeuser1987 »

Figured it..
had to yum install ld-linux.so.2 (and other dependencies)
Thankyou all for your suggestions.
deebee
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 89
Joined: Mon Jul 19, 2010 6:59 am

Re: Launching an app in LINUX

Post 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:
SoapDog
Posts: 84
Joined: Sun Apr 09, 2006 10:03 pm
Contact:

Re: Launching an app in LINUX

Post by SoapDog »

You can't run on ARM Linux... unless you are emulating x86 Linux...
http://www.andregarzia.com
livecodeuser1987
Posts: 4
Joined: Mon Mar 19, 2012 3:21 pm

Re: Launching an app in LINUX

Post 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.
aircooled76
Posts: 38
Joined: Mon May 20, 2013 3:14 pm

Re: Launching an app in LINUX

Post by aircooled76 »

Just wanted to add my voice... The ability to have an ARM Linux build would be AWESOME!!!
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Launching an app in LINUX

Post 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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply