Easiest way to install latest QT on ubuntu

13,908

Try in light of: headless unattended installation

As for Qt5.9.1

apt-get -y update
apt-get -y install build-essential libgl1-mesa-dev libassimp-dev libfontconfig1 libdbus-1-3 wget
wget http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run
chmod +x qt-opensource-linux-x64-5.9.1.run
./qt-opensource-linux-x64-5.9.1.run
Share:
13,908
Admin
Author by

Admin

Updated on June 05, 2022

Comments

  • Admin
    Admin about 2 years

    I need to install QT 5.10 on my ubuntu docker container. Compiling from source is out of question because it takes hours and my computer almost fried 2 times trying to do it until it ran ut of memory.

    Does the QT installer from https://www.qt.io/download installs the libs for 5.10? If so, is there a way to install in a non graphical way? Since I'm in docker, I need an aautomated way to install it, but the .sh that is downloaded from the website is hundreads of megabytes long, so I can't read it to see if I can pass commands to automatically install it.

    I think there's a PPA with qt available but I need a really thrustworthy source to get these libs. Debian is even worse in up to date packages.

  • Admin
    Admin over 6 years
    what's libassimp-dev? Doesn't exist on ubuntu
  • Admin
    Admin over 6 years
    is there a way to prevent installation of qt creator and other things? I just need the libraries
  • Admin
    Admin over 6 years
    It seems to try to start the display: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QXcbConnection: Could not connect to display Aborted (core dumped)