ldc-profdata command not found

In this troubleshooting guide we learn how to fix ldc-profdata command not found error message

Introduction

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

ldc-profdata: command not found

or when using sudo you get the following error message

sudo: ldc-profdata: command not found

Solutions to ldc-profdata: command not found

How To Fix ldc-profdata: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ldc-profdata is provided by ldc package.

ldc is:

LDC is a portable compiler for the D programming language with modern optimization and code generation capabilities.

It uses the official DMD compiler frontend to support the latest version of D, and relies on the LLVM Core libraries for code generation.

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

sudo apt-get -y install ldc

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

You can also use apt command to install ldc.

sudo apt -y install ldc

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

sudo aptitude install ldc

Summary

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