Recently upgraded to Fedora 43. The upgrade went fine (i think). But immediately I noticed the error message.
youknowwho@fedora \~> dnf
dnf: /usr/local/lib/libpcre2-8.so.0: no version information available (required
by /lib64/libglib-2.0.so.0)
I have been searching on this and most answers say that this is just a benign warning and it does not affect anything. I just don’t want to see the warning every time I enter a command. Is there any way I can fix it? Thanks in advance.
vekruse
(Villy Kruse)
March 9, 2026, 8:31pm
2
You should have a file named /usr/lib64/libpcre2-8.so.0 and the file /usr/local/lib/libpcre2-8.so.0 is usually not supposed to be found on your system.
I do. I tried (re)installing the package with dnf and pcre2 libs files are there:
youknowwho@fedora ~> ls /usr/lib64 | grep pcre2
libpcre2-16.so
libpcre2-16.so.0
libpcre2-16.so.0.15.0
libpcre2-32.so
libpcre2-32.so.0
libpcre2-32.so.0.15.0
libpcre2-8.so
libpcre2-8.so.0
libpcre2-8.so.0.15.0
libpcre2-posix.so
libpcre2-posix.so.3
libpcre2-posix.so.3.0.7
youknowwho@fedora ~> env | grep -e /usr/local
XDG_DATA_DIRS=/home/youknowwho/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
PATH=/home/youknowwho/anaconda3/bin:/home/youknowwho/.bun/bin:/home/youknowwho/anaconda3/bin:/home/youknowwho/.bun/bin:/home/youknowwho/anaconda3/condabin:/home/youknowwho/.rover/bin:/home/youknowwho/.dotnet/tools:/usr/local/go/bin:/home/youknowwho/Applications/idea/bin:/home/youknowwho/.cargo/bin:/home/youknowwho/.local/share/pnpm:/home/youknowwho/anaconda3/bin:/home/youknowwho/google-cloud-sdk/bin:/home/youknowwho/.bun/bin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
youknowwho@fedora ~> grep -r -e /usr/local /etc/ld.so.* /etc/profile* /etc/bash* ~/.bash*
grep: /etc/ld.so.cache: binary file matches
/etc/ld.so.conf.d/gds-12-4.conf:/usr/local/cuda-12.4/targets/x86_64-linux/lib
/etc/ld.so.conf.d/000_cuda.conf:/usr/local/cuda/targets/x86_64-linux/lib
/etc/ld.so.conf.d/988_cuda-12.conf:/usr/local/cuda-12/targets/x86_64-linux/lib
/etc/ld.so.conf.d/local.conf:/usr/local/lib
/etc/profile: pathmunge /usr/local/sbin
/etc/profile: pathmunge /usr/local/sbin after
/etc/profile.d/flatpak.csh: if ( ! ${?XDG_DATA_DIRS} ) setenv XDG_DATA_DIRS /usr/local/share:/usr/share
/etc/profile.d/flatpak.csh: if ( ${%XDG_DATA_DIRS} == 0 ) setenv XDG_DATA_DIRS /usr/local/share:/usr/share
/etc/profile.d/flatpak.sh: XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
/home/youknowwho/.bash_history:g++ -I/usr/local/include/opencv4 mat_image.cpp -o mat_image `pkg-config --cflags --libs=opencv4`
/home/youknowwho/.bash_history:g++ -I/usr/local/include/opencv4 mat_image.cpp -o mat_image `pkg-config --cflags --libs opencv4`
/home/youknowwho/.bash_history:g++ -I/usr/local/include/opencv4 mat_image.cpp -o mat_image `pkg-config --cflags --libs opencv4`
/home/youknowwho/.bash_history:wasmer config --pkg-config > /usr/local/lib/pkgconfig/wasmer.pc
/home/youknowwho/.bash_history:sudo wasmer config --pkg-config > /usr/local/lib/pkgconfig/wasmer.pc
/home/youknowwho/.bash_history:sudo wasmer config --pkg-config > sudo /usr/local/lib/pkgconfig/wasmer.pc
/home/youknowwho/.bash_history:wasmer config --pkg-config > /usr/local/lib/pkgconfig/wasmer.pc
/home/youknowwho/.bash_history:wasmer config --pkg-config > sudo /usr/local/lib/pkgconfig/wasmer.pc
/home/youknowwho/.bashrc:set PATH "$HOME/Applications/idea/bin:/usr/local/go/bin:$PATH"
youknowwho@fedora ~> sudo grep -r -e LD_LIBRARY_PATH /etc $(find ~ -maxdepth 1 ! -type d)
/etc/vpl/vars.sh:LD_LIBRARY_PATH=$(prepend_path "$vpl_lib" "${LD_LIBRARY_PATH:-}")
/etc/vpl/vars.sh:export LD_LIBRARY_PATH
/etc/hadoop/shellprofile.d/example.sh:# hadoop_add_ldlibpath will push the path into the LD_LIBRARY_PATH
vgaetera
(Vladislav Grigoryev)
March 9, 2026, 10:14pm
8
Try this workaround:
sudo sed -i -e 's/^/#/' /etc/ld.so.conf.d/local.conf
sudo ldconfig
unset LD_LIBRARY_PATH
youknowwho@fedora ~> sudo sed -i -e 's/^/#/' /etc/ld.so.conf.d/local.conf
youknowwho@fedora ~> cat /etc/ld.so.conf.d/local.conf
#/usr/local/lib
youknowwho@fedora ~> sudo ldconfig
youknowwho@fedora ~> dnf
Missing command. Add "--help" for more information about the arguments.
youknowwho@fedora ~ [2]> sudo dnf update && sudo dnf upgrade -y
Updating and loading repositories:
...
Repositories loaded.
Nothing to do.
Updating and loading repositories:
Repositories loaded.
Nothing to do.
It solved the problem. Not sure why it occurred after upgrading to 43. but thank you very much.
1 Like