Solved Something wrong when I installed qt in CenterOS8
-
I tried to install the lasted qt in CenterOS 8 ,and i downlowed the opensource inline installer and follow it to install .
But after I can't run qtcreator after finish install.
I run "./qtcreator"in terminal .I get informals below.Cannot load library /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so
Then I run "ldd libqxcb.so" ,I get informals below.
libxcb-icccm.so.4 => not found libxcb-image.so.0 => not found libxcb-keysyms.so.1 => not found libxcb-render-util.so.0 => not found
So I install all four of them use "yum".And I can find them all after I use "find" command.
[root@localhost platforms]# find / -name libxcb-icccm.so.4 /usr/lib/libxcb-icccm.so.4 [root@localhost platforms]# find / -name libxcb-image.so.0 /usr/lib/libxcb-image.so.0 [root@localhost platforms]# find / -name libxcb-keysyms.so.1 /usr/lib/libxcb-keysyms.so.1 [root@localhost platforms]# find / -name libxcb-render-util.so.0 /usr/lib/libxcb-render-util.so.0
But I run "ldd libqxcb.so" gets the same result which means all four of them cannot link still.
I have tried add path to "d.so.conf" but still don't work.
So I don't know what can I do to try to solove it after I google a whole moring.
Any suggestion will be welcome.And I am just a beginner of centeros, so pleaese experess explicitly.
Best wishes. -
Hi and welcome to devnet,
From the looks of it, you do not have the development packages corresponding to these libraries installed.
-
@newbeee
Are you sure that after you installed those files into/usr/lib
the error still reports "not found" rather than something else?To make sure what is going on run an
ldd
on each of those files in/usr/lib
to verify they look OK.I would not recommend this long-term, but you might temporarily copy those files from
/usr/lib
into/opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/
just to see whether that makes the "not found" go away? -
This post is deleted! -
@JonB
I am sure it still reported "not found".
I tried copy those four files into "/opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/",but still don't work.
But I find something might be clues.
There are files in the /usr/lib.libxcb-icccm.so.4.0.0 libxcb-image.so.0.0.0 libxcb-keysyms.so.1.0.0 libxcb-render-util.so.0.0.0
It seems they should be the same with those "cannot found "files.But the result might means qt cannot recognzie them .
Are they the same?Are they conflicted with files like libxcb-icccm.so.4.0?What should I do?
Looking forward your replay. -
Hi and welcome to devnet,
From the looks of it, you do not have the development packages corresponding to these libraries installed.
-
@SGaist
It seems so.But I dont know how to fix it. -
@newbeee said in Something wrong when I installed qt in CenterOS8:
But I dont know how to fix it
Install the dev packages: those have same name as normal packages with "-dev" at the end of the package name.
-
@jsulm
Thanks for your answer.
Could you explain it more specific ? I am a real beginner of centeros.
I try the command"yum -install libxcb-icccm-dev.so.4" and "yum -install libxcb-icccm.so.4-dev ", terminal tells me the commnd is wrong.Could you tell me what should I input into terminal? -
@jsulm
I triedyum -y install libxcb-devel
And terminal tells me the package "libxcb-devel-1.13.1-1.el8.x86_64" has already installed.
And I try to install Qt5,and download a offline installer,it works. -
I try the command"yum -install libxcb-icccm-dev.so.4" and "yum -install libxcb-icccm.so.4-dev ", terminal tells me the commnd is wrong.Could you tell me what should I input into terminal?
I have never used
yum
. You should check the usage by typingman yum
, or perhaps looking at https://access.redhat.com/articles/yum-cheat-sheet or other references. So far as I know, it needs to beyum install ...
, notyum -install ...
, it does not use the "hyphen" character before the subcommand likeinstall
? -
@JonB
Thanks a lot.I will keep learning and trying, although I have to use qt to complet some tasks before. -
@newbeee said in Something wrong when I installed qt in CenterOS8:
yum -y install libxcb-devel
That is the one for libxcb itself.
The other librairies you have issues with have their own development package that you need to install.