{"id":1570,"date":"2021-12-16T13:13:41","date_gmt":"2021-12-16T10:13:41","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/04\/28\/how-to-install-jetbrains-clion-on-linux\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/04\/28\/how-to-install-jetbrains-clion-on-linux\/"},"modified":"2021-12-16T13:13:41","modified_gmt":"2021-12-16T10:13:41","slug":"how-to-install-jetbrains-clion-on-linux","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1570-how-to-install-jetbrains-clion-on-linux\/","title":{"rendered":"How to install JetBrains CLion on Linux"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>JetBrains Clion is a cross-platform IDE (integrated development environment) for both the C and C++ programming languages. It offers many valuable features, such as code generation, code analysis, etc.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-400891 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux.png\" alt=\"JetBrains CLion on Linux\" width=\"1200\" height=\"893\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-2.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-5.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-7.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>In this guide, we\u2019ll go over the various ways you can install the JetBrains CLion IDE on Linux. For more information on the app, click here.<\/p>\n<h2>Snap package installation<\/h2>\n<p>JetBrains CLion is available as a Snap package for those that like to use the Ubuntu Snap Store. To use CLion as a Snap, you must have the Snapd runtime configured and installed on your Linux system.<\/p>\n<p>If you\u2019re on Ubuntu, the Snapd runtime is already ready to go. However, if you use Fedora, OpenSUSE, Arch Linux, or anything else, you\u2019ll need to get the runtime installed beforehand.<\/p>\n<p>Setting up the Snapd runtime on Linux so you can install Snap packages is relatively easy. To start, install the \u201csnapd\u201d package with your Linux OS\u2019s package manager. After that, use Systemd to enable the \u201csnapd.socket\u201d file.\u00a0<\/p>\n<p>Can\u2019t figure out how to set up the Snapd runtime on your Linux PC? That\u2019s OK! We can help! Follow along with our in-depth guide on how to set up Snap packages to get it working.<\/p>\n<p>After setting up Snaps, you\u2019ll be able to quickly install the JetBrains CLion app on your Linux PC with the following\u00a0<strong>snap install\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo snap install clion --classic\n<\/pre>\n<p>Please keep in mind that CLion installs as a Snap in \u201cClassic mode.\u201d The classic mode requires AppArmor, and not every Linux operating system supports it. If Snap tells you that you cannot install it correctly, try the Flatpak installation instructions instead.<\/p>\n<h2>Flatpak installation\u00a0<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-400891 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux.png\" alt=\"\" width=\"1200\" height=\"893\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-2.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-5.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-7.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>JetBrains CLion is available as a Flatpak on the Flathub app store. If you wish to install this program as a Flatpak on your Linux OS, you\u2019ll first need to set up the Flatpak runtime.<\/p>\n<p>Setting up the Flatpak runtime on Linux is very straightforward. To do it, you need only install the \u201cflatpak\u201d package onto your system using your package manager. If you need help setting up Flatpak on your Linux PC, please follow our guide on the subject.<\/p>\n<p>With the Flatpak runtime up and running, the next step is to enable the Flathub app store. Flathub carries the JetBrains CLion package, so this step is critical. To enable Flathub, use the following\u00a0<strong>flatpak remote-add\u00a0<\/strong>command below.<\/p>\n<pre>\nflatpak remote-add --if-not-exists flathub https:\/\/flathub.org\/repo\/flathub.flatpakrepo\n<\/pre>\n<p>With the Flathub app store set up, you\u2019ll be able to install CLion on your Linux PC. Using the\u00a0<strong>flatpak install\u00a0<\/strong>command below, get the app working on your computer.<\/p>\n<pre>\nsudo flatpak install flathub com.jetbrains.CLion\n<\/pre>\n<h2>Arch Linux installation\u00a0<\/h2>\n<p>Like all JetBrains apps, there is an AUR package for CLion available for installation. Keep in mind that these packages, although nice, do not receive official support from JetBrains. That said, the CLion AUR package does download directly from their website, so it is not using any modified code.<\/p>\n<p>To start the installation of CLion on Arch Linux, you\u2019ll need to install the \u201cGit\u201d and \u201cBase-devel\u201d packages. These packages are required to interact with the AUR.<\/p>\n<pre>\nsudo pacman -S git base-devel\n<\/pre>\n<p>Following the installation of the two packages, you must install the Trizen AUR helper. This program will automate the installation of CLion, so you do not have to do everything by hand.<\/p>\n<p>To install Trizen, enter the commands below in succession.<\/p>\n<pre>\ngit clone https:\/\/aur.archlinux.org\/trizen.git\n<\/pre>\n<pre>\ncd trizen\n<\/pre>\n<pre>\nmakepkg -sri\n<\/pre>\n<p>Finally, install JetBrains CLion on your Arch Linux PC by making use of the\u00a0<strong>trizen -S\u00a0<\/strong>command.<\/p>\n<pre>\ntrizen -S clion\n<\/pre>\n<h2>Generic Linux installation<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-400890 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-1.png\" alt=\"\" width=\"1200\" height=\"340\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-1.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-9.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-11.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-install-jetbrains-clion-on-linux-12.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>JetBrains CLion comes with a universal installer for those on Linux who do not want to use Snaps or Flatpak and don\u2019t use Arch Linux. To start the installation, head over to the CLion download page and click on the blue \u201cDownload\u201d button.<\/p>\n<p>After downloading, use the\u00a0<strong>CD\u00a0<\/strong>command to move the terminal window into the \u201cDownloads\u201d directory. Then, from there, use the\u00a0<strong>tar\u00a0<\/strong>command to decompress the JetBrains CLion TarGZ file downloaded previously.<\/p>\n<pre>\ncd ~\/Downloads\n<\/pre>\n<p>Inside the \u201cDownloads\u201d directory, use the <strong>tar xvf\u00a0<\/strong>command to decompress the CLion TarGZ file. The decompression process should only take a couple of seconds, as the file isn\u2019t that large.<\/p>\n<p>When the process is complete, use the\u00a0<strong>CD\u00a0<\/strong>command to move into the new CLion folder that the\u00a0<strong>tar\u00a0<\/strong>command created after the decompression process.\u00a0<\/p>\n<pre>\ncd clion-*\/\n<\/pre>\n<p>After entering the new CLion folder, access the \u201cbin\u201d sub-directory. This directory has the \u201cclion.sh\u201d script, which needs to be run to access the CLion app on Linux.<\/p>\n<pre>\ncd bin\/\n<\/pre>\n<p>Start up CLion on your Linux PC by running the\u00a0<strong>sh clion.sh<\/strong> command below.<\/p>\n<pre>\nsh clion.sh\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles JetBrains Clion is a cross-platform IDE (integrated development environment) for both the C and C++ programming languages. It offers many valuable features, such as code generation, code analysis, etc. In this guide, we\u2019ll go over the various ways you can install the JetBrains CLion IDE on Linux. For more information on the app, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1570"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1570"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1571"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}