You are not logged in.
The problem arises whenever I'm trying to compile anything dependent on glib-2.0. it says
Package 'libpcre2-8', required by 'glib-2.0', not found Should I install pcre2-8 if so from where because I can"t find this version of pcre2
Thanks for help in advance.
Last edited by technicap (2023-11-16 17:09:52)
Offline
pacman -Q pcre2
Online
Output:
pacman -Q pcre2
pcre2 10.42-2Offline
Package 'libpcre2-8'That package doesn't exist on archlinux, though debian/ubuntu appear to have it.
Output of pacman -Qi glib2 ?
What are you trying to compile and do you have a PKGBUILD for it ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
pacman -Qi glib2Output:
Name : glib2
Version : 2.78.1-1
Description : Low level core library
Architecture : x86_64
URL : https://wiki.gnome.org/Projects/GLib
Licenses : LGPL
Groups : None
Provides : libglib-2.0.so=0-64 libgio-2.0.so=0-64 libgmodule-2.0.so=0-64 libgobject-2.0.so=0-64 libgthread-2.0.so=0-64
Depends On : libffi libsysprof-capture pcre2 util-linux-libs zlib libffi.so=8-64 libmount.so=1-64
Optional Deps : gvfs: most gio functionality [installed]
libelf: gresource inspection tool [installed]
python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report [installed]
Required By : accountsservice at-spi2-core audacity avahi bluez bluez-utils cairo calf dbus-glib dbus-python dconf ddcutil desktop-file-utils enchant flatpak fluidsynth gcr-4 gdk-pixbuf2 gegl ghostscript gimp
glib-networking glibmm graphene gsettings-desktop-schemas gssdp gstreamer gtk3 gtk4 guitarix gupnp gupnp-igd harfbuzz hexchat json-glib lensfun lib32-glib2 libaccounts-glib libass libblockdev
libcacard libcloudproviders libcolord libdbusmenu-glib libgdiplus libgexiv2 libgirepository libgtop libgudev libguestfs libgusb libhandy libical libinstpatch liblangtag libldm liblqr libmalcontent
libmanette libmbim libmm-glib libmypaint libnice libnm libnotify libosinfo libpackagekit-glib libportal libproxy libqrtr-glib libratbag libreoffice-fresh librest librsvg libsecret libslirp libsoup
libsoup3 libwacom libwireplumber libxfce4util libxklavier libxmlb lightdm minecraft-launcher modemmanager nwg-look-bin opencv openscad ostree phodav pinentry pipewire pipewire-audio pipewire-pulse
playerctl plymouth polkit polkit-qt5 poppler-glib qemu-audio-dbus qemu-common qemu-hw-usb-smartcard qemu-img qemu-system-aarch64 qemu-system-alpha qemu-system-arm qemu-system-avr qemu-system-cris
qemu-system-hppa qemu-system-loongarch64 qemu-system-m68k qemu-system-microblaze qemu-system-mips qemu-system-nios2 qemu-system-or1k qemu-system-ppc qemu-system-riscv qemu-system-rx qemu-system-s390x
qemu-system-sh4 qemu-system-sparc qemu-system-tricore qemu-system-x86 qemu-system-xtensa qemu-ui-curses qemu-ui-dbus qemu-ui-gtk qemu-ui-sdl qemu-ui-spice-app qemu-user qemu-vhost-user-gpu qt6-base sane
shared-mime-info spice spice-gtk thunderbird tracker3 tracktion-waveform udisks2 upower usbredir volume_key webkit2gtk-4.1 weston wireshark-cli wpebackend-fdo xdg-dbus-proxy xdg-desktop-portal
Optional For : glusterfs libpulse mlt suil
Conflicts With : None
Replaces : None
Installed Size : 24.20 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Wed 25 Oct 2023 01:58:18 PM CEST
Install Date : Mon 13 Nov 2023 02:49:41 PM CET
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : SignatureI'm encoutering this on compliation of completly unreleated packages. So ,It's not a package problem.
Last edited by technicap (2023-11-16 14:37:49)
Offline
You are building what, and how? Post the complete build log. Any self respecting buildsystem should use pkgconf and that would logically resolve things correctly.
Output of
printenvLast edited by V1del (2023-11-16 14:46:17)
Offline
You mean the output of command used to build or what? Program uses make to build
Offline
yes, and again, what program? And the printenv output?
If it's literally everything and normally properly working PKGBUILDs fail then you have a some library lookup override or a non-standard PKG_CONFIG_PATH or so, libpcre2-8 is provided by the pcre2 package under /usr/lib/pkgconfig/libpcre2-8.pc and that's not resolved for you for some reason.
Last edited by V1del (2023-11-16 15:08:31)
Offline
The /usr/lib/pkgconfig/libpcre2-8.pc doesn't exist on my system
Offline
then your pcre2 installation is broken, reinstall it.
Offline
The pcre2 only comes in version pcre2-10 not pcre2-8 which is required by glib-2.0 and this doesn't seem to exist in aur or on github page of pcre2
Offline
And what is your (relevant) glib-2.0?
Post the complete build log
Otherwise this is going absolutely nowhere.
Also
pacman -Qkk glib2
pkgconf --path glib-2.0
pkgconf --print-requires-private glib-2.0
pkgconf --print-requires glib-2.0 # this better be emptyOffline
I was trying to install xboxdrv https://github.com/xboxdrv/xboxdrv.
It uses sCons , its difrrent program that exibits the same as the one using make above. Here's output of running as instructed on giithub page:
scons
scons: Reading SConscript files ...
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Checking for C++ library X11... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/main/main.o -c -isystem/usr/include/libusb-1.0 -g -O3 -Wall -ansi -pedantic -DPACKAGE_VERSION='"0.8.8"' -Isrc src/main/main.cpp
g++ -o src/arg_parser.o -c -isystem/usr/include/libusb-1.0 -g -O3 -Wall -ansi -pedantic -DPACKAGE_VERSION='"0.8.8"' -Isrc src/arg_parser.cpp
In file included from /usr/include/boost/function/detail/requires_cxx11.hpp:9,
from /usr/include/boost/function/detail/prologue.hpp:12,
from /usr/include/boost/function.hpp:30,
from src/helper.hpp:22,
from src/arg_parser.cpp:24:
/usr/include/boost/function/detail/requires_cxx11.hpp:18:1: note: ‘#pragma message: C++03 support was deprecated in Boost.Function 1.82 and will be removed in Boost.Function 1.84. Please open an issue in https://github.com/boostorg/function if you want it retained.’
18 | BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.Function 1.82 and will be removed in Boost.Function 1.84. Please open an issue in https://github.com/boostorg/function if you want it retained.")
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bind/detail/requires_cxx11.hpp:18:1: note: ‘#pragma message: C++03 support was deprecated in Boost.Bind 1.82 and will be removed in Boost.Bind 1.84. Please open an issue in https://github.com/boostorg/bind if you want it retained.’
18 | BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.Bind 1.82 and will be removed in Boost.Bind 1.84. Please open an issue in https://github.com/boostorg/bind if you want it retained.")
| ^~~~~~~~~~~~~~~~~~~~
g++ -o src/axis_event.o -c -isystem/usr/include/libusb-1.0 -g -O3 -Wall -ansi -pedantic -DPACKAGE_VERSION='"0.8.8"' -Isrc src/axis_event.cpp
In file included from src/axis_event.cpp:28:
src/uinput.hpp:22:10: fatal error: glib.h: No such file or directory
22 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
scons: *** [src/axis_event.o] Error 1
scons: building terminated because of errors.And this are the commands you wanted me to run
pacman -Qkk glib2
glib2: 732 total files, 0 altered files
pkgconf --path glib-2.0
/usr/lib/pkgconfig/glib-2.0.pc
pkgconf --print-requires-private glib-2.0
[nothing]
pkgconf --print-requires glib-2.0
[nothing]Offline
The pcre2 only comes in version pcre2-10 not pcre2-8 which is required by glib-2.0 and this doesn't seem to exist in aur or on github page of pcre2
This is completely untrue. In fact, there is no such thing as pcre2-10.
The /usr/lib/pkgconfig/libpcre2-8.pc doesn't exist on my system
Why not? Look at the file list at https://archlinux.org/packages/core/x86_64/pcre2/ , the package does come with that file. Are you using NoExtract in pacman.conf or something?
Maybe pacman -Qi pcre2 can shed some light on it?
The problem here is not glib2, the problem is that your pcre2 is broken. Have you reinstalled it yet like V1del told you to?
Last edited by Scimmia (2023-11-16 16:19:16)
Online
I didn't reinstall it because I did it before and it didn't fix it. I did it now and it works. Thanks form putting up with me
Offline
pkgconf --print-requires-private glib-2.0
[nothing]
Also post your /usr/lib/pkgconfig/glib-2.0.pc
Edit: though w/ the scons errors and your ultimate solution I suspect the "[nothing]" there is false?
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Last edited by seth (2023-11-16 16:33:19)
Offline