Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error: libxkbcommon-x11.so.0: cannot open shared object file



  • Hi,
    i try to install QT 5.9.9 under CentOS 6.10 and i try to install the "qt-unified-linux-x64-4.0.1-online.run" and got no reaction. So i try it with the Terminal "sudo ./qt-unified-linux-x64-4.0.1-online.run" and got this error:

    ./qt-unified-linux-x64-4.0.1-online.run: error while loading shared libraries: libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory

    i did "yum update" too. I dont know what i can do now.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you have that library installed on your system ? You might be missing a package.

    By the way, no need for sudo, it won't help in that case.



  • Hi, well im new here and i dont know how i can find this package. I tried with "yum install libxkbcommon" or ""yum install libxkbcommon-x11".


  • Lifetime Qt Champion

    Do you have any files matching xkbcommon on your system ?
    Which related package do you have currently installed ?



  • @SGaist Im not sure where i can find this, but if i try

    yum provides '*/libxkb*'
    

    then i got this:

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    libxkbfile-devel-1.0.6-1.1.el6.i686 : X.Org X11 libxkbfile development package
    Repo : base
    Matched from:
    Filename : /usr/lib/libxkbfile.so

    libxkbfile-1.0.6-1.1.el6.i686 : X.Org X11 libxkbfile runtime library
    Repo : base
    Matched from:
    Filename : /usr/lib/libxkbfile.so.1.0.2
    Filename : /usr/share/doc/libxkbfile-1.0.6/COPYING
    Filename : /usr/share/doc/libxkbfile-1.0.6/ChangeLog
    Filename : /usr/share/doc/libxkbfile-1.0.6
    Filename : /usr/lib/libxkbfile.so.1

    libxkbfile-devel-1.0.6-1.1.el6.x86_64 : X.Org X11 libxkbfile development package
    Repo : base
    Matched from:
    Filename : /usr/lib64/libxkbfile.so

    libxkbfile-1.0.6-1.1.el6.x86_64 : X.Org X11 libxkbfile runtime library
    Repo : base
    Matched from:
    Filename : /usr/lib64/libxkbfile.so.1
    Filename : /usr/share/doc/libxkbfile-1.0.6/COPYING
    Filename : /usr/share/doc/libxkbfile-1.0.6/ChangeLog
    Filename : /usr/lib64/libxkbfile.so.1.0.2
    Filename : /usr/share/doc/libxkbfile-1.0.6

    libxkbfile-1.0.6-1.1.el6.x86_64 : X.Org X11 libxkbfile runtime library
    Repo : installed
    Matched from:
    Filename : /usr/share/doc/libxkbfile-1.0.6/ChangeLog
    Filename : /usr/share/doc/libxkbfile-1.0.6/COPYING
    Filename : /usr/lib64/libxkbfile.so.1
    Filename : /usr/share/doc/libxkbfile-1.0.6/
    Filename : /usr/lib64/libxkbfile.so.1.0.2


  • Lifetime Qt Champion

    Not working On CentOS 6, I do not know the exact package name. I found this which may help.



  • Any other ideas?


  • Lifetime Qt Champion

    Did you check the link I provided ?

    The brute force solution would be to update your distribution.



  • @SGaist Hi, i tried with yum localinstall libxkbcommon-x11-0-0.8.3-63.1.x86_64.rpm and got this:

    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Local Package Process
    Examining libxkbcommon-x11-0-0.8.3-63.1.x86_64.rpm: libxkbcommon-x11-0-0.8.3-63.1.x86_64
    Marking libxkbcommon-x11-0-0.8.3-63.1.x86_64.rpm to be installed
    Loading mirror speeds from cached hostfile
    Resolving Dependencies
    --> Running transaction check
    ---> Package libxkbcommon-x11-0.x86_64 0:0.8.3-63.1 will be installed
    --> Processing Dependency: libxkbcommon.so.0(V_0.5.0)(64bit) for package: libxkbcommon-x11-0-0.8.3-63.1.x86_64
    --> Processing Dependency: libxkbcommon.so.0()(64bit) for package: libxkbcommon-x11-0-0.8.3-63.1.x86_64
    --> Finished Dependency Resolution
    Error: Package: libxkbcommon-x11-0-0.8.3-63.1.x86_64 (/libxkbcommon-x11-0-0.8.3-63.1.x86_64)
    Requires: libxkbcommon.so.0()(64bit)
    Error: Package: libxkbcommon-x11-0-0.8.3-63.1.x86_64 (/libxkbcommon-x11-0-0.8.3-63.1.x86_64)
    Requires: libxkbcommon.so.0(V_0.5.0)(64bit)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest


  • Lifetime Qt Champion

    Looks like you need to get another package before.


Log in to reply