capnp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
capnp: command not found
or when using sudo you get the following error message
sudo: capnp: command not found
Solutions to capnp: command not found
How To Fix capnp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu capnp is provided by capnproto package.
capnproto is:
Similar to Protocol Buffers, Cap’n Proto is an efficient means of serializing structured data to be transferred across a network or written to disk. Users write a Cap’n Proto definition file that drives a code generator, which in turn emits C++ code for encoding & decoding messages in the Cap’n Proto format.
In addition to being extremely fast, Cap’n Proto also smooths over some of the rougher aspects of Protocol Buffers & introduces a number of new features to boot.
This package contains a small suite of tools for developing & maintaining your Cap’n Proto schema files, including a code generator for compiling your schema files to supported languages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install capnproto
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install capnproto.
sudo apt -y install capnproto
Or if you have aptitude installed you can use the following command.
sudo aptitude install capnproto
Summary
In this tutorial we learn how to fix capnp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.