Kindly advice how to run the console application in EC2.
I have tried with ./application name in terminal.
But it doesn’t work.
Kindly advice how to run the console application in EC2.
I have tried with ./application name in terminal.
But it doesn’t work.
Do you get any errors when you do that?
Elastic Cloud comes with various Linux flavors, as well as Windows Server. Which one is yours ?
And when you say “it does not work”, what is the error message you are getting ?
EC2 Linux instances are 64 bit so you ideally want to compile your console app for 64 bit. If your console app is only 32 bit you will need to install the 32 bit Linux compatibility libraries.
If the EC2 instance is MS-Windows it could be that you need to install the latest Microsoft Windows msvc runtime libraries.
My current EC2 was 64 bit AWS Linux and so I compiled my console app in 64 bit and it ran fine. Once uploaded, I just ran as ./appname and it was fine. Check the executable bit.
I had some fun and games with an old 64 bit AWS Linux and the 32 bit console app and runtimes. Took me an hour or two! Glad Xojo built my console app 64 bit with no issues!