Standard compilation for linux [closed]

-4

blz galera, and the following if I compile a file in .exe I can take it to a newly formatted machine with windows without anything installed and run this file, I wanted to know how to do this for linux, I do not care if I compiled it a script C, PYTHON, RUBY anyway I want to run on any machine.

    
asked by anonymous 07.04.2017 / 03:34

1 answer

1

Python and Ruby are not compiled, ie they do not generate executable files, they are interpreted by language programs, except for C.

  • As long as you have the Ruby program installed on the machine the .rb script will work.
  • Python is present in many Linux distros, but of course it will not become an executable, it will still depend on something to boot, maybe another executable or%

I think that C language would be what you can compile in any environment, as long as you use the libs and APIs that are compatible between different systems, however I do not think you understand what a compiled program is, and maybe this is why confusion, I recommend that before everything and before reading the rest of my answer read this very carefully:

If you have finished reading all the answers then I will give you suggestions, first there are languages that guarantee to create cross-platform applications, but this in general always depends on something, for example many say # is cross-platform, but in fact to run a java written program on a computer is required link , however there are programs that can create an "exe" (of course in the case it is only for Windows) as o: link (last update in 2007).

But as I said yes to other systems like Mac OSX and the various different and generally "non-portable" Linux distros, you will have to actually install Java.

Python as I usually see with linux for home users by default, in other cases just by installing, in Windows you will also need to install and then the .sh scripts can be started, of course it has the "boot" , for example has a game called Frets On Fire that was written in Python (probably using in> for Windows probably sends a version of Python accompanied already and has a .py (or generates), the same does not occur other different systems may need to install on the machine by itself.

As I said might be ideal, but it's a language that may not take a long time for you to build an application the way you want, then you could try the , but not the one alone, but rather with a framework (I think that's what it's called) like Qt , Qt has compatible libs between different systems, ie a C ++ written with the Qt libs can be compiled on any system that you have installed Qt like:

  

Windows, Linux / X11, Mac OSX, Embedded Linux, QNX, QNX 6.6.0 (armv7le and x86), Android, iOS, WinRT and Windows Phone 8.1.

Note that Qt Community does not support everything, but supports many Linux, Mac OSX and Windows distros, of course to compile on each system you have to download the SDK on each system and have each system :

That is, with Qt you can achieve the desired result, but of course it will depend on a lot of study and practice, you will not only get and drag in the QtDesigner program, or just because you studied a bit of #

    
07.04.2017 / 04:07