在ubuntu上安装最新QT的最简单方法 [英] Easiest way to install latest QT on ubuntu

查看:150
本文介绍了在ubuntu上安装最新QT的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在ubuntu docker容器上安装QT 5.10.从源代码进行编译是没有问题的,因为它要花费数小时,并且我的计算机几乎两次尝试执行该操作,直到耗尽内存为止.

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.

是否从 https://www.qt.io/download 安装QT安装程序来安装库5.10?如果是这样,是否可以通过非图形方式进行安装?由于我在docker中,因此我需要一种自动化的方式来安装它,但是从网站下载的.sh的长度是几兆字节,因此我无法阅读它是否可以通过命令来自动安装它

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.

我认为有一个Qt可用的PPA,但是我需要一个真正值得推销的资源来获取这些库.在最新的软件包中,Debian更糟糕.

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.

推荐答案

尝试以下操作:无头无人值守安装

至于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

这篇关于在ubuntu上安装最新QT的最简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆