x86_64-linux-gnu-qmake command not found

In this troubleshooting guide we learn how to fix x86_64-linux-gnu-qmake command not found error message

Introduction

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

x86_64-linux-gnu-qmake: command not found

or when using sudo you get the following error message

sudo: x86_64-linux-gnu-qmake: command not found

Solutions to x86_64-linux-gnu-qmake: command not found

How To Fix x86_64-linux-gnu-qmake: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu x86_64-linux-gnu-qmake is provided by qt5-qmake package.

qt5-qmake 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 5 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 5 qmake requires a platform and 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 qt5-qmake

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

You can also use apt command to install qt5-qmake.

sudo apt -y install qt5-qmake

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

sudo aptitude install qt5-qmake

Summary

In this tutorial we learn how to fix x86_64-linux-gnu-qmake command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.