How to install CLion IDE on Ubuntu
Last Updated :
03 Jun, 2024
CLion (pronounced "sea lion") is a Linux, macOS, and Windows C and C++ IDE that is integrated with the CMake build system. The GNU Compiler Collection (GCC) and Clang compilers, as well as the GDB debugger, LLDB, and Google Test, are all supported in the first edition. JetBrains' CLion is one of the greatest C/C++ IDEs available. CLion can help us enhance your workflow if we're professional C/C++ programmers. The appearance and feel of all JetBrains IDEs, including CLion, are consistent. Both novices and pros will find it simple to use.
We'll look at how to install and configure CLion C/C++ IDE on Ubuntu in this article. So, let's get this party started.
Installation of CLion on Ubuntu
Step 1: CLion can be downloaded by going to JetBrains' official website at https://www.jetbrains.com using your chosen web browser and selecting Developer Tools > CLion.

Step 2: Now select the Download option from the panel.

Step 3: Make sure that Linux is selected now. Then select DOWNLOAD.

Step 3: We will be prompted to save the file by your browser. Simply choose Save File and click OK.

Step 4: The CLion archive is being downloaded, as we can see.

C/C++ Build Tools Installation
We will go through the installation of C/C++ build tools on Ubuntu in this section. So, after CLion is installed, we'll be able to compile C/C++ programs.
Step 1: To begin, run the following command to refresh the APT package repository cache:
sudo apt update

Step 2: The cache for the APT package repository should be refreshed. Now run the following command to install C/C++ development tools:
sudo apt install build-essential

Step 3: To continue, press Y/y and then enter.
Build tools for C/C++ are installed on the system.
CLion Installation on Ubuntu
We will go through the installation of CLion on Ubuntu in this section.
Step 1: To begin, use the following command to get to the /Downloads directory:
cd ~/Downloads

Step 2: The CLion archive file I just downloaded is visible here. Keep the filename handy.

Step 3: To extract the contents of the archive to the /opt directory, perform the following command.
sudo tar xzf CLion-2022.1.1.tar.gz -C /opt

Step 4: As shown in the screenshot below, once the archive has been extracted, a new directory should be formed inside the /opt directory. Keep the directory name in mind.

Step 5: Now type the following command into Terminal to launch CLion:
/opt/clion-2022.1.1/bin/clion.sh

Step 6: We'll need to conduct some initial configuration because this is your first time operating CLion. When the following dialogue appears, select Do not import settings and then OK.

Step 7: Select either the Dracula Dark or Dracula Light theme. Then, as shown in the screenshot below, select Next: Toolchains.

Step 8: As we can see, all of the C/C++ development tools have been discovered automatically. Then select Next: Default Plugins.

Step 9: Depending on what we do now, we will be asked to tune CLion. If we do web development and C/C++, for example, we can maintain the Web Development tools. If we don't require it, simply select Disable All to turn off all web development features. Click Next: Featured Plugins after we're finished.

Step 10: CLion will now propose several popular plugins that we can install to extend CLion's functionality. If we use GitHub, for example, the Markdown plugin is essential. So we may install it as a CLion plugin by clicking Install. Click Next: Desktop Entry after we're finished.

Step 11: Make sure that both checkboxes are selected. Then, as shown in the screenshot below, click on the Start using CLion button.

Step 12: Click Authenticate after entering your login user's password.

Step 13: CLion will generate desktop icons so that we may run themlicense from the Ubuntu Application Menu. You'll never need to launch it from the command prompt again. CLion must now be activated. CLion is not available for free. To use CLion, we'll need to purchase a licence from JetBrains. If we have a valid license, we can activate CLion from here.

Step 14: Select Evaluate for free and click Evaluate if we wish to trial CLion before purchasing a license.

Step 15: The CLion splash screen should appear now. The CLion dashboard will appear after a while. You may create, import, and manage your existing projects from here. The first setup is now complete. CLion can now be launched directly from the Ubuntu Application Menu.
Similar Reads
How to Install Arduino IDE on Ubuntu
In this article, we will be installing Arduino IDE on the Ubuntu system. We will install the application using various different approaches. Arduino IDE is an effective and user-friendly software environment that enables programmers to create and upload code to microcontroller boards that are compat
4 min read
How to Install Gvim on Ubuntu
The text editor known as Vim, which stands for "Vi Improved," is a traditional one that is primarily used by programmers. It is commonly referred to as a "programmer's editor." It was created a long time ago, but it is still a well-liked editor that outperforms many rivals. It can be used for everyt
5 min read
How to Install Clang on Ubuntu Linux?
Clang is a widely used open-source compiler front end for the C, C++, and Objective-C programming languages. It is known for its efficiency, modular architecture, and a strong focus on providing useful diagnostics for developers. Installing Clang on Ubuntu Linux involves using the package manager to
6 min read
How to install make on Ubuntu
The "make" program in Linux is used to compile and manage a set of source code applications and files. It allows developers to install and gather a range of apps via the terminal. It also controls and cuts down on the amount of time necessary for compilation. The basic objective of the make command
3 min read
How to Install abs-guide on Ubuntu?
The abs-guide assumes no prior knowledge of scripting or programming while quickly progressing toward an intermediate/advanced level of education... all while slipping in little pearls of UNIX® wisdom and lore. It is a textbook, a self-study handbook, and a reference and source of knowledge on shell
2 min read
How to install JUnit 5 on Ubuntu?
JUnit 5 is a powerful and widely used testing framework for Java applications. Installing JUnit 5 on Ubuntu involves configuring a Java project with the necessary dependencies. Begin by setting up a Java project using a build tool such as Maven or Gradle, and then include JUnit 5 as a dependency. Th
4 min read
How To Install Git on Ubuntu 20.04
Git, a popular version control system, is widely used for managing code in software development projects. It tracks changes in code, allowing collaboration and easy reversion to previous versions if needed. This article will outline two methods for installing Git on your Ubuntu system. Table of Cont
3 min read
How to install Rider on Ubuntu?
Are you looking to install Rider on your Ubuntu system? Rider, the powerful IDE from JetBrains, is a popular choice for .NET developers seeking a robust development environment on Linux. In this guide, we will provide you with a step-by-step tutorial on how to install Rider on Ubuntu. Whether you ar
3 min read
How to Install Vim Editor in Ubuntu?
Vim is a highly configurable and powerful text editor used by developers and system administrators on Ubuntu and other Linux distributions. Whether youâre coding, writing scripts, or editing configuration files, Vim offers efficiency with its vast features and keyboard shortcuts. In this guide, we'l
3 min read
How to install PhpStorm in Ubuntu?
Installing PhpStorm on Ubuntu can significantly enhance your web development experience by providing a powerful IDE tailored for PHP development. This guide will walk you through the simple steps to install PhpStorm on your Ubuntu system, ensuring you have all the tools you need to code efficiently
3 min read