gapi2-parser command not found

In this troubleshooting guide we learn how to fix gapi2-parser command not found error message

Introduction

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

gapi2-parser: command not found

or when using sudo you get the following error message

sudo: gapi2-parser: command not found

Solutions to gapi2-parser: command not found

How To Fix gapi2-parser: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gapi2-parser is provided by gtk-sharp2-gapi package.

gtk-sharp2-gapi is:

GTK# 2.10 is a CLI (.NET) language binding for the GTK+ 2.10 toolkit

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-sharp2-gapi

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

You can also use apt command to install gtk-sharp2-gapi.

sudo apt -y install gtk-sharp2-gapi

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

sudo aptitude install gtk-sharp2-gapi

Summary

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