pcb2gcode command not found

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

Introduction

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

pcb2gcode: command not found

or when using sudo you get the following error message

sudo: pcb2gcode: command not found

Solutions to pcb2gcode: command not found

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

In Ubuntu pcb2gcode is provided by pcb2gcode package.

pcb2gcode is:

pcp2gcode is a command-line tool for isolation routing and drilling PCBs that provides full support for both single- and double-sided boards. It generates G-code (RS-274 code) for engraving and drilling from Gerber and Excellon files.

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

sudo apt-get -y install pcb2gcode

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

You can also use apt command to install pcb2gcode.

sudo apt -y install pcb2gcode

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

sudo aptitude install pcb2gcode

Summary

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