nec2c command not found

In this troubleshooting guide we learn how to fix nec2c command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nec2c: command not found

or when using sudo you get the following error message

sudo: nec2c: command not found

Solutions to nec2c: command not found

How To Fix nec2c: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nec2c is provided by nec2c package.

nec2c is:

The translation was performed mostly “by hand” and a lot of modifications to the original program were introduced in order to modernize the NEC2 and to remove as many built-in limitations as possible. The attendant SOMNEC program was also translated to C and incorporated in nec2c as a function so that Sommerfeld ground solutions are a part of the program.

To fix this problem, we can install more using the command below.

sudo apt-get -y install nec2c

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nec2c.

sudo apt -y install nec2c

Or if you have aptitude installed you can use the following command.

sudo aptitude install nec2c

Summary

In this tutorial we learn how to fix nec2c command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.