标签:ade res pat sea perl sdn back sudo linu
新装好的redhat7.3,在安装qt的时候,有时会出现
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/zhu/Qt/qt-x11-opensource-src-4.5.2/mkspecs/Linux-g++
解决这个问题只需要几个库就可以了,实际上只要安装两个库:
sudo yum install libXau-devel
sudo yum install ibX11-devel (打印信息显示,该package已经安装)
sudo yum install libXext-devel
但苦于自己的电脑没有网络,只能手动安装,在安装的过程中,经常产生这样的警告:conflicts with file from package
[root@test1 softwares]# rpm -ivh lib64ev4-4.24-1.mga6.x86_64.rpm
warning: lib64ev4-4.24-1.mga6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
Preparing... ################################# [100%]
package lib64ev4-1:4.24-1.mga6.x86_64 is already installed
[root@test1 softwares]# rpm -ivh lib64ev4-4.24-1.mga6.x86_64.rpm
warning: lib64ev4-4.24-1.mga6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
Preparing... ################################# [100%]
package lib64ev4-1:4.24-1.mga6.x86_64 is already installed
[root@test1 softwares]# rpm -ivh perl-base-5.16.3-1.mga3.x86_64.rpm
warning: perl-base-5.16.3-1.mga3.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
Preparing... ################################# [100%]
file /usr/bin/perl from install of perl-base-2:5.16.3-1.mga3.x86_64 conflicts with file from package perl-4:5.16.3-283.el7.x86_64
file /usr/bin/perl5.16.3 from install of perl-base-2:5.16.3-1.mga3.x86_64 conflicts with file from package perl-4:5.16.3-283.el7.x86_64
解决办法:
rpm -ivh perl-base-5.16.3-1.mga3.x86_64.rpm --replacefiles
这样就可完成XLib库的安装。
Linux下编译安装XLib库
标签:ade res pat sea perl sdn back sudo linu
原文地址:http://www.cnblogs.com/leokie/p/7755350.html