Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux stand alone executable generation

I am a programmer with strong background in Java, Ruby, Python and other high level/dynamic languages. I am facing a problem where I need to code a Linux executable (for 64 and possibly 32-bit OSes too) and none of this languages appear to suit this task, because I end up having to distribute a runtime as well.

I really can't write decent C code, so I'd like to ask for advise on a good high level language that supports sockets communications and process spawning that would produce either C intermediate code or standalone Linux executables.


2 Answers

For python you can use Freeze.

From the wiki:

Freeze is a "pure Python" utility that ships with Python. You can use Freeze to compile executables for Unix systems.

If you want to write Python, but you don't know if your clients have Python installed, use this!

like image 176
Karl Voigtland Avatar answered Jun 07 '26 22:06

Karl Voigtland


Some choices:

  1. Learn C or C++. How hard could it be? It might be fun.
  2. Use gcj. This is the gnu java compiler.
  3. Use RubyScript2Exe
like image 44
DigitalRoss Avatar answered Jun 07 '26 22:06

DigitalRoss