Minor problem with Fedora 45 and Plasma 6.8.2

When I run kinfo from the command line, I get various messages ending with kinfocenter is not installed. When I try to install kinfocenter, I’m told it’s already installed! Could it be because I have Qt 6.12 in my path for development?

✓  richard@andromeda-ascendant ~
>>> kinfo                                                                
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Core.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6XmlGui.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Gui.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6ConfigWidgets.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Gui.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6GuiAddons.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Core.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6GuiAddons.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Gui.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6GlobalAccel.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Gui.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6IconThemes.so.6)
kcmshell6: /home/richard/Qt/6.12.0/gcc_64/lib/libQt6Gui.so.6: version `Qt_6.11_PRIVATE_API' not found (required by /usr/lib64/libKF6ColorScheme.so.6)
kinfocenter is not installed
✗  richard@andromeda-ascendant ~
>>> sudo dnf install kinfocenter                                      [1]
[sudo] password for richard: 
Updating and loading repositories:
Repositories loaded.
Package "kinfocenter-6.8.2-1.fc45.x86_64" is already installed.

Nothing to do.

Hey Richard, I think your guess is right. DNF confirms KInfoCenter is already installed. The issue is that kcmshell6 is loading Qt libraries from your development installation (~/Qt/6.12.0/gcc_64/lib) instead of Fedora’s system libraries.

The error shows that Fedora’s KDE libraries require the Qt_6.11_PRIVATE_API, which your Qt 6.12 libraries don’t provide. That’s why they fail to load. The “kinfocenter is not installed” message is just a misleading symptom.

This is most likely caused by LD_LIBRARY_PATH. Try these:

echo "$LD_LIBRARY_PATH"
env -u LD_LIBRARY_PATH kinfo

If kinfo works with the second command, you’ve found the issue.

To find where the variable is being set, try:

grep -rn "Qt/6" ~/.bashrc ~/.bash_profile ~/.profile ~/.zshrc ~/.zprofile ~/.config/fish ~/.config/environment.d 2>/dev/null

Remove the global setting and only set it when launching your Qt development applications. For example:

env LD_LIBRARY_PATH="$HOME/Qt/6.12.0/gcc_64/lib" ./myapp

Just to clarify, PATH and LD_LIBRARY_PATH are different. PATH tells your shell where to find executables, while LD_LIBRARY_PATH tells the linker where to look for shared libraries first.

No need to reinstall KInfoCenter. The package is installed; it’s loading the wrong Qt libraries.

If it still doesn’t work, share the output of these:

echo "$LD_LIBRARY_PATH"
ldd "$(which kcmshell6)" | grep Qt6Core

Also check /etc/ld.so.conf.d/ in case you added the Qt path there.

That’s exactly what it was. Thank you.

I forgot that I set LD_LIBRARY_PATH when compiling the Qt bindings for Java.

No problem !