answersLogoWhite

0


Best Answer

Most programs you can download in source form can be compiled using the following simple steps:

1. Extract the source package (ex. 'tar xzvf programname-version.tar.gz'), this will create directory programname-version. Chdir into it.

2. Run './configure'. This checks the build environment to make sure your compiler works and has the proper libraries installed.

3. Run 'make'. This compiles the program.

4. Run 'make install'. This places the binaries in the appropriate location(s).

5. Depends on GCC version also

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Once the program is written we must insist machine to exicute it.

so to type the c-program you need some platform that is called "Editor".

After writting the program the program should be converted to machine lavel language mean '0' and '1' before that has exicuted.

To do these thing we need a program called compiler.the basic vompiler vendors provide an "integrated development environment"(IDE) which consists od both editior and a compiler.

this is how program gets compile.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Easy. If your program is in file mycode.c, then type:

cc mycode.c -o mycode

./mycode

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

On a Linux system the command is g++, this command takes the same options as gcc

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

computer

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compile software on Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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 do you make software from a simple java program?

You compile it.You compile it.You compile it.You compile it.


Why is it difficult to port software designed for UNIX to Linux?

In general, no, it is not difficult at all. As long as you stick to the POSIX (and other open standards) and use a conformant compiler for the software there shouldn't be any problem in porting software. I do it all the time - from Linux to Unix, or Unix to Linux, makes no difference. In fact, a lot of common software is cognizant of the actual Operating System at compile time and will take care of the differences (if there are any).


Is there tax software for Linux anywhere?

There are several different tax software compatible with Linux. You can use Tax Act. Is another software that people use when the Linux is not available.


What other kind of software does Linux make?

Linux is not a company.


What software does Linux support?

There are thousands of pieces of software in existence. It would be impractical, if not impossible, to list every piece of software that was not compatible with Linux.


What software does not support Linux?

There are thousands of pieces of software in existence. It would be impractical, if not impossible, to list every piece of software that was not compatible with Linux.


What is Linux wine and what is it used for?

Linux Wine is an open source software program. The Linux Wine software program allows Linux users to run Windows programs on their own devices such as computers.


How has Linux affected the market for proprietary software?

Linux is an open source software that has not had a detrimental affect on the marketing of proprietary software. Linux is computer operating system assembled under the model of free and open source software development and distribution.


Where can you download software from Mandriva?

Software from Mandriva can be downloaded from their specific website online. Mandriva is the Linux software and can also be downloaded from the Linux site too.


Is there a software named Graphics in Linux?

No. There is no program named "Graphics" for Linux.


What skills are necessary to make your own operating system based on Linux?

This depends on the feature set that you want your distribution to have. In general, you need to:Know how to compile software, including the Linux kernelWrite basic shell scripts (the more featured the distro is the more complex the scripts)Know how to configure a bootloader.Set up a packaging system if you want users to be able to easily install additional software