vppreproc command not found

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

Introduction

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

vppreproc: command not found

or when using sudo you get the following error message

sudo: vppreproc: command not found

Solutions to vppreproc: command not found

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

In Ubuntu vppreproc is provided by libverilog-perl package.

libverilog-perl is:

Verilog is a Perl framework providing Verilog support in the Perl language. It includes:

  • Verilog::Getopt, which parses command line options similar to C++ and VCS
  • Verilog::Language, which knows the language keywords and parses numbers.
  • Verilog::Netlist, which builds netlists out of Verilog files. This allows easy scripts to determine things such as the hierarchy of modules.
  • Verilog::Parser, which invokes callbacks for language tokens
  • Verilog::Preproc, preprocesses the language, and allows reading post-processed files right from Perl without temporary files.

It also includes a variety of useful utilities:

  • vpassert inserts PLIish warnings and assertions for any simulator
  • vppreproc preprocesses the complete Verilog 2001 and SystemVerilog language
  • vrename renames and cross-references Verilog symbols. It creates Verilog cross references and makes it easy to rename signal and module names over multiple files.

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

sudo apt-get -y install libverilog-perl

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

You can also use apt command to install libverilog-perl.

sudo apt -y install libverilog-perl

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

sudo aptitude install libverilog-perl

Summary

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