c2go command not found

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

Introduction

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

c2go: command not found

or when using sudo you get the following error message

sudo: c2go: command not found

Solutions to c2go: command not found

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

In Ubuntu c2go is provided by c2go package.

c2go is:

This package contains a tool for converting C to Go.

The goals of this project are:

  • To create a generic tool that can convert C to Go.
  • To be cross platform (Linux and Mac) and work against as many clang versions as possible (the clang AST API is not stable).
  • To be a repeatable and predictable tool (rather than doing most of the work and you have to clean up the output to get it working.)
  • To deliver quick and small version increments.
  • The ultimate milestone is to be able to compile the SQLite3 source code and have it working without modification.

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

sudo apt-get -y install c2go

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

You can also use apt command to install c2go.

sudo apt -y install c2go

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

sudo aptitude install c2go

Summary

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