What Do I Do If Error Message "libgfortran.so.4: No such file or directory" Is Displayed During Compilation?

Possible Cause

The .so file in the open source files depends on libgfortran.so.4, which cannot be found in the compilation environment.

Solution

Run the following commands to install gfortran. (If gfortran-4 cannot be found in the environment, you can install a later version.)

apt-get update
apt-get install gfortran-4