Let's begin by making sure we have the latest package versions from the Ubuntu upstream repositories. We can do that by running the following commands:
sudo apt-get update sudo apt-get upgrade
Next, we will install the prerequisite packages. Note
hat some of these packages may already have been installed on your system, but it is good to make sure we have them all:
sudo apt-get install -y gfortran pkg-config software-properties-common