Qt installation prompt cannot find the library (error while loading shared libraries: libX11.so.6: cannot open shared object file

Error 1:

./qt-opensource-linux-x86-5.5.1.run 
./qt-opensource-linux-x86-5.5.1.run: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

解决办法:
sudo apt-get install libx11-dev:i386

Error 2:

./qt-opensource-linux-x86-5.5.1.run 
./qt-opensource-linux-x86-5.5.1.run: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

解决:
sudo apt-get install libx11-xcb1:i386

Error 3:

./qt-opensource-linux-x86-5.5.1.run 
./qt-opensource-linux-x86-5.5.1.run: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

解决办法:
sudo apt-get install libfontconfig1:i386
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  libexpat1:i386 libfreetype6:i386 libpng12-0:i386 zlib1g:i386
下列【新】软件包将被安装:
  libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libpng12-0:i386
  zlib1g:i386
升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 719 kB 的归档。
解压缩后会消耗 2,321 kB 的额外空间。
您希望继续执行吗? [Y/n] y

Error 4 (not yet resolved):

./qt-opensource-linux-x86-5.5.1.run 
Could not register file downloader for https protocol: QSslSocket::supportsSsl() returns false
[12] Warning: QSslSocket: cannot call unresolved function d2i_X509
[12] Warning: QSslSocket: cannot call unresolved function d2i_X509
[12] Warning: QSslSocket: cannot call unresolved function d2i_X509
段错误 (核心已转储)


解决办法:

sudo apt install openssl:i386
后续依旧提示错误
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
段错误 (核心已转储)

 Solution:

sudo apt-get install libgl1-mesa-dev

 

Guess you like

Origin blog.csdn.net/u011624093/article/details/116086790