qmake6 command not found

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

Introduction

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

qmake6: command not found

or when using sudo you get the following error message

sudo: qmake6: command not found

Solutions to qmake6: command not found

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

In Ubuntu qmake6 is provided by qmake6 package.

qmake6 is:

Qt is a cross-platform C++ application framework. Qt’s primary feature is its rich set of widgets that provide standard GUI functionality.

This package contains the Qt 6 qmake, a tool that helps simplify the build process for development project across different platforms. qmake automates the generation of Makefiles so that only a few lines of information are needed to create each Makefile. qmake can be used for any software project, whether it is written using Qt or not.

Qt 6 qmake requires a platform and a compiler description file which contains many default values used to generate appropriate Makefiles.

This package contains also these platform specifications.

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

sudo apt-get -y install qmake6

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

You can also use apt command to install qmake6.

sudo apt -y install qmake6

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

sudo aptitude install qmake6

Summary

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