gapi3-codegen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gapi3-codegen: command not found
or when using sudo you get the following error message
sudo: gapi3-codegen: command not found
Solutions to gapi3-codegen: command not found
How To Fix gapi3-codegen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gapi3-codegen is provided by gtk-sharp3-gapi package.
gtk-sharp3-gapi is:
GTK# 3.0 is a CLI (.NET) language binding for the GTK+ 3.0 toolkit and related libraries.
This package includes the parser and code generator used by the GTK# project to parse and bind GObject libraries. Install if you want to bind GObject-based libraries, or need to compile a project that uses it to bind such a library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gtk-sharp3-gapi
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gtk-sharp3-gapi.
sudo apt -y install gtk-sharp3-gapi
Or if you have aptitude installed you can use the following command.
sudo aptitude install gtk-sharp3-gapi
Summary
In this tutorial we learn how to fix gapi3-codegen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.