• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • 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 News
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
To To
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.

14
SHARED
38
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
    1. Related Posts

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:
FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok

Related Posts

  • Best dating apps 🚀: Discover where to find a stable partner now.
  • Portable monitors 2025: discover the best and cheapest 🔥🎯
  • 🌟 Microsoft Surface Updates: Reasons not to miss this new version.
  • South of Midnight: A Gothic Adventure in 60fps – Discover it NOW! ⚡️
  • Hidden costs of owning a Chromebook: Don't buy before reading this! ⚠️
  • Snapchat Crashes On Its Own: 10 Quick And Effective Solutions
  • Google Chrome on Android and Security: 3 settings that save your data 🔒🚀
  • How to Disable Command Prompt in Windows 11 ⚡ Quick and Safe Methods
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

How to pair AirPods with a Chromebook: Person opens the AirPods case and connects them via Bluetooth to an HP laptop.
Tutorials

How to pair AirPods with Chromebook: Connect them in minutes! ⏱️🔌

November 20, 2025
84
RESULT_CODE_HUNG - Person using laptop with Chrome error "Aw, Snap!" (RESULT_CODE_HUNG), showing a 1-click solution that fixes Google Chrome and prevents it from freezing.
Tutorials

RESULT_CODE_HUNG: One-click solution that fixes Chrome 🚀

November 19, 2025
103
Rename PC in Windows 11: Settings screen showing "Change Computer Name", guide with 3 quick methods: CMD, PowerShell and Settings.
Tutorials

Rename your PC: done in 10 seconds, goodbye weird names 🔥

November 19, 2025
269
GIMP Stable Boy - User at a desk working in GIMP; screen shows GIMP Stable Boy plugin tutorial in Spanish for free generative fill-an open‑source Adobe alternative.
Tutorials

GIMP Stable Boy: Avoid Adobe and create magic for free 💥🚀

November 18, 2025
110
Disable autocorrect on iPhone: WhatsApp screen with keyboard open, steps to remove keyboard autocorrect on iOS.
Tutorials

Turn off autocorrect NOW: write freely in 1 min ⏱️🔥

November 6, 2025
82
Steam Damaged Update Files - How to fix the Steam error "damaged/corrupted update files"; Steam logo on dark background, step-by-step guide and solution.
Tutorials

Steam Corrupted Update Files: Fix in 2 min ⏳

November 6, 2025
100
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

Do not miss the latest in technology and gaming.
Tips unique, practical guides and analysis every day.

Subscription Form
  • Trends
  • Comments
  • Last
How to add clock on the Windows desktop 11: ¡3 tricks infallible!

How to add clock on the Windows desktop 11: Get more in minutes! ⏱️

1 May 2025
How to save game in REPO

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

7 July 2025
12 Best Alternatives to Lucky this program for Android

Alternatives to Lucky this program: the 12 apps best and easy! 🎮⚡

13 November 2025
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

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

November 20, 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
Dark illustration from *The Midnight Walk*: creature with round head and lit torch walking through a nighttime mountainous landscape, with crooked houses and a sinister moon in the sky, used in the review of the atmospheric horror video game.

The Midnight Walk The dark journey everyone wants to experience 🔥

November 30, 2025
Rotating Water Room - Video game screenshot showing the rotating water room with triangular platforms and a central mechanism, visual guide to learning how to solve the rotating water room puzzle in Doom.

Easy Gold Rotating Room in Doom: Hidden Trick ⚡

November 30, 2025
Apple Brain Control - Young woman using virtual reality headset on sofa while controlling a tablet with her mind, illustrating Apple's new less invasive BCI for brain control.

Apple reveals mind control in iPhone 🤯

November 30, 2025
Spotify Error 18 - Woman wearing headphones looking at her laptop with Spotify screen displaying the message "Fix Spotify Error Code 18", illustrating a quick fix for Spotify error 18 on Windows.

Spotify Error 18 Quick Fix Nobody Told You About 🔥

November 30, 2025

Recent News

Dark illustration from *The Midnight Walk*: creature with round head and lit torch walking through a nighttime mountainous landscape, with crooked houses and a sinister moon in the sky, used in the review of the atmospheric horror video game.

The Midnight Walk The dark journey everyone wants to experience 🔥

November 30, 2025
60
Rotating Water Room - Video game screenshot showing the rotating water room with triangular platforms and a central mechanism, visual guide to learning how to solve the rotating water room puzzle in Doom.

Easy Gold Rotating Room in Doom: Hidden Trick ⚡

November 30, 2025
60
Apple Brain Control - Young woman using virtual reality headset on sofa while controlling a tablet with her mind, illustrating Apple's new less invasive BCI for brain control.

Apple reveals mind control in iPhone 🤯

November 30, 2025
58
Spotify Error 18 - Woman wearing headphones looking at her laptop with Spotify screen displaying the message "Fix Spotify Error Code 18", illustrating a quick fix for Spotify error 18 on Windows.

Spotify Error 18 Quick Fix Nobody Told You About 🔥

November 30, 2025
61
MasterTrend News 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

Dark illustration from *The Midnight Walk*: creature with round head and lit torch walking through a nighttime mountainous landscape, with crooked houses and a sinister moon in the sky, used in the review of the atmospheric horror video game.

The Midnight Walk The dark journey everyone wants to experience 🔥

November 30, 2025
Rotating Water Room - Video game screenshot showing the rotating water room with triangular platforms and a central mechanism, visual guide to learning how to solve the rotating water room puzzle in Doom.

Easy Gold Rotating Room in Doom: Hidden Trick ⚡

November 30, 2025
  • 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