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 » Wed Oct 03, 2012 3:42 pm

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: 9850
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Launching an app in LINUX

Post by FourthWorld » Wed Oct 03, 2012 5:19 pm

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: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Launching an app in LINUX

Post by mwieder » Wed Oct 03, 2012 5:28 pm

...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 » Wed Oct 03, 2012 6:00 pm

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 » Wed Oct 03, 2012 6:02 pm

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 » Wed Oct 03, 2012 6:07 pm

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: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Launching an app in LINUX

Post by mwieder » Wed Oct 03, 2012 6:23 pm

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 » Thu Oct 04, 2012 7:16 pm

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
Location: Illinois, USA

Re: Launching an app in LINUX

Post by deebee » Fri Oct 05, 2012 4:31 am

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
Location: Niterói, RJ
Contact:

Re: Launching an app in LINUX

Post by SoapDog » Fri Oct 05, 2012 5:01 am

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 » Fri Oct 05, 2012 4:08 pm

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 » Tue Jul 23, 2013 3:01 pm

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: 9850
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Launching an app in LINUX

Post by FourthWorld » Tue Jul 23, 2013 3:52 pm

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

Return to “Linux”