Setting up the development environment: Installing CLion under Ubuntu

For our project, we chose to use CLion as a development IDE under Ubuntu.

CLion provides a much more suitable environment compared to other alternatives such as Eclipse and it can be installed both on Windows or Ubuntu machines.

Since compiling OOFEM under windows is not continuously supported you have to set up an Ubuntu machine. You can use Virtual Box to run Ubuntu under a windows host.

 My  recommended minimum requirements of Virtual Machine for our project:

5GB ram / 3 cores / 20GB of disk space

Consider using a host machine with 16 GB of ram with 4 physical CPU cores (3 cores assigned to VM) for better performance.

I recommend installing CLion using “snap” for simplicity of installations and updating as follows. You can also refer to the official documentation of CLion.

Open terminal and type the following:

sudo snap install clion --classic

Note: if for any reason the installation does not go well, such as unexpected system reboot, the snap may try to continue installation in the background on the next reboot. In such occasions if you try to install the CLion again with the command above you will get this error:

error: snap "clion" has "install-snap" change in progress

You can use this command to see hidden installation progress:

snap watch --last=install

 After installation use CLion command to run the CLion from terminal.

You can right click on CLion  icon > add to Favorites on the taskbar for easy launch.

If for any reason you need to remove CLion, you can use this command:

sudo snap remove clion

Related links:

See official documentation of CLion.

Leave a comment

Design a site like this with WordPress.com
Get started