cpan2doap command not found

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

Introduction

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

cpan2doap: command not found

or when using sudo you get the following error message

sudo: cpan2doap: command not found

Solutions to cpan2doap: command not found

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

In Ubuntu cpan2doap is provided by librdf-doap-lite-perl package.

librdf-doap-lite-perl is:

RDF::DOAP::Lite is a small companion module to RDF::DOAP, enabling you to output DOAP data easily from standard CPAN distribution files.

DOAP (Description of a Project) is an RDF Schema and XML vocabulary to describe software projects, in particular free and open source software.

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

sudo apt-get -y install librdf-doap-lite-perl

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

You can also use apt command to install librdf-doap-lite-perl.

sudo apt -y install librdf-doap-lite-perl

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

sudo aptitude install librdf-doap-lite-perl

Summary

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