iverilog-vpi command not found

In this troubleshooting guide we learn how to fix iverilog-vpi command not found error message

Introduction

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

iverilog-vpi: command not found

or when using sudo you get the following error message

sudo: iverilog-vpi: command not found

Solutions to iverilog-vpi: command not found

How To Fix iverilog-vpi: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iverilog-vpi is provided by iverilog package.

iverilog is:

Icarus Verilog is intended to compile all of the Verilog HDL as described in the IEEE-1364 standard. It is not quite there yet. It does currently handle a mix of structural and behavioral constructs.

The compiler can target either simulation, or netlist (EDIF).

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

sudo apt-get -y install iverilog

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

You can also use apt command to install iverilog.

sudo apt -y install iverilog

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

sudo aptitude install iverilog

Summary

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