Linux下编译安装XLib库

新装好的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库的安装。

转载于:https://www.cnblogs.com/leokie/p/7755350.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值