How to compile .c program in Fedora Linux

Written by Administrator on Thursday March 26, 2020

Before you compile a .c program in Fedora, you need ensure, you have installed compiler.

First of all, let's update YUM database:

$ sudo yum makecache

Then we need install a 'Development tools' package (it's the same as build-essentials in Ubuntu):

$ sudo yum group install 'Development Tools'

Then required GCC should be installed. Let's check it:

$ gcc --version

Now we are prepared to compile our .c program:

$ gcc -o rastertozj rastertozj.c