Qt安装提示找不到库(error while loading shared libraries: libX11.so.6: cannot open shared object file

错误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

错误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

错误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

错误4(暂未解决):

./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
段错误 (核心已转储)

 解决办法:

sudo apt-get install libgl1-mesa-dev

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值