nbc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nbc: command not found
or when using sudo you get the following error message
sudo: nbc: command not found
Solutions to nbc: command not found
How To Fix nbc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nbc is provided by nbc package.
nbc is:
Next Byte Codes (NBC) is a simple language with an assembly language syntax that can be used to program LEGO’s NXT programmable brick (from the new LEGO Mindstorms NXT set).
Not eXactly C (NXC) is a high level language, similar to C, built on top of the NBC compiler. It can also be used to program the NXT brick. NXC is basically NQC for the NXT. To compile NXC programs just use the NBC compiler with source code files that have a .nxc file extension.
If you are just getting started with programming, then graphical environments such as the Mindstorms NXT software may be better choices for you. If, however, you’re a programmer and you prefer typing a few lines to drag and drop icon programming, then either NBC or NXC may be perfect for you.
To fix this problem, we can install more using the command below.
sudo apt-get -y install nbc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nbc.
sudo apt -y install nbc
Or if you have aptitude installed you can use the following command.
sudo aptitude install nbc
Summary
In this tutorial we learn how to fix nbc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.