cginfo command not found

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

Introduction

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

cginfo: command not found

or when using sudo you get the following error message

sudo: cginfo: command not found

Solutions to cginfo: command not found

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

In Ubuntu cginfo is provided by nvidia-cg-toolkit package.

nvidia-cg-toolkit is:

The Nvidia Cg Toolkit provides a compiler for the Cg language, runtime libraries for use with both leading graphics APIs, runtime libraries for CgFX, example applications, and extensive documentation. Supporting over 24 different OpenGL and DirectX profile targets, Cg will allow you to incorporate stunning interactive effects into your 3D applications.

The components include:

  • NVIDIA Cg Compiler
  • Unified Cg/CgFX Runtime
  • Cg User’s Manual
  • Cg Language Specification
  • Example programs and shaders

This package contains the Cg compiler and other utilities.

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

sudo apt-get -y install nvidia-cg-toolkit

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

You can also use apt command to install nvidia-cg-toolkit.

sudo apt -y install nvidia-cg-toolkit

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

sudo aptitude install nvidia-cg-toolkit

Summary

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