dcl2inc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dcl2inc: command not found
or when using sudo you get the following error message
sudo: dcl2inc: command not found
Solutions to dcl2inc: command not found
How To Fix dcl2inc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dcl2inc is provided by ftnchek package.
ftnchek is:
ftnchek (short for Fortran checker) is a tool designed to detect certain errors in a Fortran program that a compiler usually does not, thus assisting users in the debugging of their Fortran programs.
Unlike syntax errors, semantic errors are legal in the Fortran language but are wasteful or may cause incorrect operation. For example, variables which are never used may indicate some omission in the program; uninitialized variables contain garbage which may cause incorrect results to be calculated; and variables which are not declared may not have the intended type.
ftnchek can also be used to provide call-trees, cross-reference of subprogram calls and COMMON blocks usage, source listings, symbol tables and other things you might find useful when debugging a Fortran program.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ftnchek
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ftnchek.
sudo apt -y install ftnchek
Or if you have aptitude installed you can use the following command.
sudo aptitude install ftnchek
Summary
In this tutorial we learn how to fix dcl2inc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.