How to Install Code Blocks for C++ on Linux?
Last Updated :
06 Oct, 2021
Code::Blocks is a free IDE( an integrated development environment), for C/C++ and FORTRAN languages. It is a cross-platform IDE and available for Windows, Mac, and Linux, In this article, we are going to discuss various methods using which we can install Code Blocks on Linux.:
Installation Code Blocks for C++ on Linux:
Method 1: Using apt install commands:
Follow the below steps to install Code Blocks for C++ on Linux using the apt install terminal command:
Step 1: Before starting the actual installation, we must have the GCC compiler installed on our system. To install GCC run the following command in your terminal.
sudo apt install g++
Output:
installing GCC compiler.
As we have already installed the GCC compiler it is displaying, g++ is already installed with the newer version.
Step 2: Now, we just have to install the code blocks using the following command and confirm the installation by pressing "Y":
sudo apt install codeblocks
Output:
installing codeblocks
Step 3: To open the code blocks navigate to the activities launcher (search) and type code blocks, you will see code blocks icons, click on the icon to install the code block.
Opening Code blocksMethod 2: Using Software Center:
Follow the below steps to install Code Blocks for C++ on Linux:
Step 1: Open up the software manager that you have using the activity launcher.
Installing through the software center
Step 2: Search for Code blocks and click on the code blocks.
Downloading code blocks
Step 3: Select the first one the Code::Blocks and click on the install button, wait for the installation to be finished, then open the code blocks
installing code blocks.
Similar Reads
How to Install Code Blocks for C++ on MacOS? Code::Blocks is a free and open-source IDE that supports a plethora of C++ compilers like GCC, Clang, and Visual C++. It is written in C++ and makes use of wxWidgets as the GUI toolkit. Code::Blocks is focused on C, C++, and Fortran development. It has a custom build system and optional Make support
2 min read
How to Install Code Blocks for C++ on Windows? In this article, we will look into the process of installing code blocks for C++ on windows. Installation Code Blocks for C++ on Windows: Follow the below steps to install Code Blocks for C++ on windows: Step 1: Open Your Web Browser Step 2: Go to the Search Panel and Search for "Code Blocks" Step 3
2 min read
How to Install Eclipse for C++ on Linux? Eclipse is an IDE (integrated development environment) used for building software. It was initially released by IBM on 7 November 2001. Using eclipse, we can develop applications with Java, PHP, and C/C++ programming languages. It's one of the most popular open-source IDE among developers. In today'
2 min read
How To Install Qt Creator On Linux? Qt Creator is a cross-platform C++, JavaScript, and QML integrated environment that simplifies GUI application development. It is currently available for Windows, macOS, and Linux. It is part of the SDK for the Qt GUI application development framework and uses the Qt API, which encapsulates host OS
2 min read
How to Install GCC Compiler on Linux? In this article, we will discuss how to install a GCC compiler on Linux. GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also be used to compile Objective C and Objective C++. The GCC is an open-source collection of compilers and libraries. Let's st
2 min read