xnec2c command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xnec2c: command not found
or when using sudo you get the following error message
sudo: xnec2c: command not found
Solutions to xnec2c: command not found
How To Fix xnec2c: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xnec2c is provided by xnec2c package.
xnec2c is:
The original nec2c is a non-interactive command-line application that reads standard NEC2 input files and produces an output file with data requested by “commands” in the input file.
In contrast xnec2c is a GUI interactive application that (in its current form) reads NEC2 input files but presents output data in graphical form, e.g. as wire frame drawings of the radiation pattern or near E/H field, graphs of maximum gain, input impedance, vswr etc against frequency and simple rendering of the antenna structure, including color code representation of currents or charge densities. These results are only calculated and drawn on user demand via menu items or buttons, e.g. xnec2c is interactive and does not execute NEC2 “commands” in batch style as the original does.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xnec2c
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xnec2c.
sudo apt -y install xnec2c
Or if you have aptitude installed you can use the following command.
sudo aptitude install xnec2c
Summary
In this tutorial we learn how to fix xnec2c command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.