【发布时间】:2018-06-17 06:12:03
【问题描述】:
需要构建简单的 GUI 应用程序。出于这个原因,我决定在我的 Ubuntu 16 上安装 Qt。我已经下载了开源 Qt 版本from theirs site。运行时出错:
g@ubuntu:~/Downloads$ ./qt-unified-linux-x86-2.0.5-2-online.run
./qt-unified-linux-x86-2.0.5-2-online.run: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
如何解决?
【问题讨论】:
-
为什么不直接从仓库安装它,使用
apt-get? -
sudo apt-get install qt带来E: Unable to locate package qt -
你是在图形桌面下运行的吗?
-
先尝试
apt-cache search qt,然后选择相应的包。