answersLogoWhite

0

How compile and run in Linux?

Updated: 12/14/2022
User Avatar

Wiki User

8y ago

Best Answer

Usually the compilation is done using the "make" command if the developer hasn't created a .sh file that includes the "make" inside of it.

And most of the times "make install" is the command you can see for installing the compiled program on the system. This could differ from program to program, developer to developer, language to language.

However, if you get a Makefile, it definitely uses the "make" command and if you use "cat Makefile" you may be able to get an idea on how to use "make" commands for compilation and installation.

After installation, the program could be run just by typing the program name on the terminal.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How compile and run in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you run programs compiled with Turbo C on Linux?

Turbo C cannot compile native Linux binaries, only programs for MS-DOS. MS-DOS applications can be run on Linux through a variety of methods, including DOSEMU, DOSBox, QEMU, Bochs, and VirtualBox.


How do you compile a C program in Linux?

1. Create the source into a file with any text editor, for example: myprog.c2. Compile it: gcc -Wall -W -pedantic -g -o myprog myprog.c3. Run it: ./myprog


How do you compile and run the shell programs through vi-editor in Linux?

You don't Shell files/programs are not compiled. If you want to run a process through 'vi' then use the ':!' 'ex' command to shell out and execute it.


How do you run and compile a java applet program?

One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.


Is overriding done at compile time or run time?

compile time


Do you have to compile Linux software before using it?

You can if you really want to! But, most Linux software is already compiled and ready to be downloaded and installed. Note that Linux is the kernel from which many distributions (distos) branch out - Ubuntu, Linux Mint are but two examples.


How can you compile or run the java programming?

To compile:javac MyProgram.javaTo run:java MyProgramHowever, you can also do everything (both compile and run) from within an IDE.


Can Linux run DVD-ROM discs?

It depends on the Linux you are running. There are thousands of Linux distros. It is possible that your distro wasn't intended to run DVD-ROM. But most Linux will run them.


Why do Linux programs not run in Windows?

The 2 operating systems are different from each other. Linux programs aren't meant to work in Windows most of the time. If you want to run Linux programs in Windows, install cygwin, and compile them from source code.


Where would one find instructions on how to run e2sck on Linux?

One can find instructions on how to run e2sck Linux by checking the Linux website directly. There are clear instructions on how to run all Linux programs.


Can you run PHP on Linux?

Yes. Many popular websites run PHP on Linux.


On Linux how many kernels you can compile at the same time and how many kernels you can load in Linux?

You can have as many compiled kernels in your Linux installation as you want (disk space is your limit). However, you can only boot one kernel at a time.