• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend Info - Technology, News and Tutorials
No result
See all results
Start Tutorials

Compile on Linux: Run in minutes with 3 commands ⚡

MasterTrend Insights by MasterTrend Insights
September 20, 2025
in Tutorials
Reading time:6 min read
0
Compiling on Linux - Person programming on a Linux laptop, running commands in the terminal to compile code with gcc and make; guide to compiling on Linux.

Compiling on Linux: Developer using the terminal to compile source code with gcc and make on GNU/Linux, perfect for programming tutorials, DevOps, and learning the command line.

50
SHARED
140
Views
Share on FacebookShare on Twitter

Contents

  1. Compiling on Linux: 3 Steps to Creating Binaries 🔥
    1. Key Summary
  2. What is Compiling from Source Code?
  3. 3-Step Build Process: Configure, Make, Install
  4. How ./configure Starts the Process
  5. make does most of the work
  6. Finishing with make install

Compiling on Linux: 3 Steps to Creating Binaries 🔥

Key Summary

  • Most software follows a 3-step process to compile from source code: ./configure && make && make install.
  • The script configure checks the dependencies, make generates the executable, and tools such as autoconf/automake automate this process.
  • Installation is usually optional, making it easier to run commands copied into directories in the PATH of system.

Compiling from source code can seem intimidating compared to using package managers, but with three basic commands, the process is simple and straightforward. 🚀

What is Compiling from Source Code?

The programs you use can be interpreted or compiled. Interpreted programs are text files containing code that another program (the interpreter) executes in real time. Compiled programs, on the other hand, are binary files containing machine code ready to be executed.

Compiled executables are very common, especially in large programs. When you compile from source code, yousas a compiler like gcc to convert the code into an executable program, often distributed across multiple files.

Linux terminal showing Steam installation with commands.

The compilation process can be extensive and complex, which is why it is usually automated with programs such as make. The files makefiles control how the final executable is built.

In large projects, these makefiles They can be so complex that they are automatically generated with tools such as autoconf and automake to ensure compatibility across different architectures. 🛠️

3-Step Build Process: Configure, Make, Install

Most software uses this basic pattern to compile from source code:

./configure && make && make install

Popular programs like Apache use this sequence (or some variant), such as explains his file INSTALL:

Apache INSTALL file fragment showing ./configure, make, and make install steps.

Node.js also follows this structure, as indicated in its BUILDING.md file:

Snippet from the Node.js BUILDING.md file showing ./configure, make, and make install.

Each project may have slight variations from this command string. Use the logical AND operator (&&) stops the process if any step fails:

./configure && make && make install

Or you can run each command separately on a single line with a semicolon, although this will run all commands without stopping if any fail:

./configure; make; make install

You can also do the three lines separately:

./configure make make install

If you just want to try the program without installing it, you can skip make install and run it from its folder.

Some repositories have the script configure Ready, while others (like grep) require running another script first to generate it. Always refer to the INSTALL, BUILD, or README file to follow the project's recommendations. 📋

How ./configure Starts the Process

The script configure It is the starting point of the compilation process, adapting the project to your environment.

This script checks the dependencies required for the project, checking versions and availability. Upon completion, it generates a file named Makefile for the next phase.

The script configure offers many configurable options with ./configure --help, allowing you to customize build details.

So much configure as make generate a lot of output on the screen. Use the option --quiet if you want to run these commands without showing so much detail. 🤫

If the script is missing configure, some projects include a script like autogen.sh to generate it. For example, htop uses it:

Output of autogen.sh script in htop source code generating configure.

Very simple projects or projects written in other languages may not have configure. There the process is in two steps: make && make install.

The script configure It also controls installation details, such as the parameter --prefix, which sets the installation root directory. By default it is /usr/local, but you can change it to better organize your files.

make does most of the work

After configure generates a Makefile, the actual compilation of the software begins with make.

This program reads the Makefile and follows rules to decide which files to create or update. The Makefiles handwritten are easy to understand for those who know the syntax.

For example, this one Makefile simple compiles a program that depends on the file program.c:

program: program.c gcc -o program program.c

make check if program.c changed since the last compilation. If it didn't change, do nothing; if it did, compile with gcc.

Close-up of illuminated keys of Das Keyboard 6 Professional.

The makefiles automatically generated are usually much more complex. For example, the makefile htop has 2,440 lines:

Fragment of the auto-generated Makefile for the htop project.

But you don't need to understand every detail. Unless you modify the source code, just run it. make and let the system take care of it.

The step make It may take minutes or longer for large projects. If it fails, it's usually due to missing dependencies. The advantage is that make saves progress and resumes where it left off when you run again.

Finishing with make install

After compiling, the created executable is usually located in the root of the project or in a subdirectory called bin. You can run it using the full path:

Running make in cli directory creates bin subdirectory with the final executable.

This is useful for testing, but in the long run you'll want to install it in an accessible location.

The objective install that defines the makefile Copy the necessary files and set permissions. The default location is /usr/local/bin, although you can change it with --prefix.

If you don't have permissions for that folder, run sudo make install and provides the administrator password.

The installation directory must be included in your variable PATH to be able to run the program with just its name, without specifying the full path.

Share this:
1FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
1
SHARE
Tags: EvergreenContentLinuxTechtips
Previous Publication

Clean WinSxS in Windows 11 now: free up GB without deleting ⚡

next post

Tempest Rising Review: RTS Classic Revive with 22 missions! 🔥

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

WiFi Calling on iPhone. Woman showing on an iPhone the WiFi Calling option enabled in settings, guide on how to enable and use WiFi Calling on iPhone step by step.
Tutorials

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
166
Advanced on-screen TV settings with brightness, contrast, sharpness, color, motion flow and HDR tone mapping configuration on a 4K UHD TV displaying a cinematic scene in high definition.
Tutorials

Advanced TV settings: what to change and what to avoid

April 7, 2026
251
iPhone call forwarding activated from settings, showing the “Call Forwarding” option enabled on the mobile phone screen.
Tutorials

iPhone call forwarding: how to activate and use it

April 27, 2026
236
Actual charging speed on your Android phone shown in a charging meter app with amperage and battery status on screen, while a woman holds the smartphone in a technology store.
Tutorials

Actual Loading Speed ​​on Your Android Phone

February 22, 2026
185
Accidental Echo Activation - Woman annoyed by the accidental activation of Alexa on an Amazon Echo speaker in a domestic living room.
Tutorials

Accidental activation of Echo on Amazon speakers

February 9, 2026
216
PNG to PDF Methods - Illustration of methods to convert PNG files to PDF, showing PNG and PDF icons with a conversion arrow between both formats.
Tutorials

PNG to PDF conversion methods: A comparison to help you choose in Windows 11

April 27, 2026
304
next post
Tempest Rising Review: RTS cover featuring cybernetic commander and futuristic blue/red battle, tanks, soldiers, drones and aircraft in combat.

Tempest Rising Review: RTS Classic Revive with 22 missions! 🔥

5 1 vote
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

April 28, 2026
Windows 11 Persistent Clock

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

April 28, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Repair of motherboards - Repair MotherBoards

Repair of motherboards of Laptops

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
Saros Endings: A. Devraj in futuristic Soltari armor in a dark and dramatic scene, analysis of the main ending and secret ending of the video game.

Saros Endings: Analysis of the Main and Secret

June 13, 2026
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

May 4, 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026

Recent News

Saros Endings: A. Devraj in futuristic Soltari armor in a dark and dramatic scene, analysis of the main ending and secret ending of the video game.

Saros Endings: Analysis of the Main and Secret

June 13, 2026
0
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

May 4, 2026
122
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
105
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
155
MasterTrend Info logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

Saros Endings: A. Devraj in futuristic Soltari armor in a dark and dramatic scene, analysis of the main ending and secret ending of the video game.

Saros Endings: Analysis of the Main and Secret

June 13, 2026
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

May 4, 2026
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance