[GNC] Building Gnucash on Fedora 37 - "No package 'glib-2.0' found" error

Vivek Gani vivekgani at gmail.com
Thu Apr 27 23:32:44 EDT 2023


I'm pretty sure it was a git checkout via `git clone
git at github.com:Gnucash/gnucash.git`
. I was sorta pressed for time and ended up just installing the rpm package
of gnucash which met my needs for python bindings - see
https://discussion.fedoraproject.org/t/trying-to-build-gnucash-from-source-cmake-getting-no-package-glib-2-0-found/79234
for another discussion thread I started at the time.

-Vivek

On Tue, Apr 25, 2023 at 4:45 AM Geert Janssens <geert.gnucash at kobaltwit.be>
wrote:

> Hi,
>
> A late reply...
>
> I'm on Fedora 37 as well, but can't reproduce the error.
>
> I'm currently building the current stable branch though, not 4.13. Where
> does your gnucash-4.13 come from ? Is that a release tarball, or a git
> checkout ?
>
> Regards,
>
> Geert
>
> Op donderdag 9 maart 2023 23:52:52 CEST schreef Vivek Gani:
>
> > Hi,
>
> >
>
> > I'm trying to build gnucash from source (rather than the rpm package or
>
> > flatpak for python bindings) on Linux (Fedora 37) and keep running into
> an
>
> > issue where on build I get the error:
>
> >
>
> > ```
>
> > -- Checking for module 'glib-2.0>=2.56.1'
>
> > --   No package 'glib-2.0' found
>
> > ```
>
> >
>
> > What I've tried so far:
>
> > - I've installed glib2.0-devel via `sudo dnf install glib2-devel`
>
> > - I've checked via `yum provides */glib2.0.pc` which shows it is in the
>
> > `/usr/lib64/pkgconfig` directory.
>
> > - I've checked the contents of `echo $PKG_CONFIG_PATH` which shows
>
> > directories like `/usr/lib64/pkgconfig` are listed.
>
> > - I've tried building gnucash with various different arguments, but
> similar
>
> > to the directions in
>
> > https://wiki.gnucash.org/wiki/CMake#GnuCash_Configuration_Variables &
>
> >
> https://wiki.gnucash.org/wiki/Building_On_Linux#Build_using_CMake_and_Ninja
>
> > I've tried in my build directory:
>
> > `cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt
>
> > -DCMAKE_PREFIX_PATH=$PKG_CONFIG_PATH  -DCMAKE_VERBOSE_MAKEFILE=on
>
> > ../gnucash-4.13`
>
> >
>
> > and get the glib error. It happens also without the CMAKE_PREFIX_PATH,
> just
>
> > running plain `cmake .` in the gnucash source directory, etc.
>
> >
>
> > Any idea what I'm missing to get things to build?
>
> >
>
> > Thanks in advance,
>
> > Vivek
>
> > _______________________________________________
>
> > gnucash-user mailing list
>
> > gnucash-user at gnucash.org
>
> > To update your subscription preferences or to unsubscribe:
>
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>
> > -----
>
> > Please remember to CC this list on all your replies.
>
> > You can do this by using Reply-To-List or Reply-All.
>
>
>


More information about the gnucash-user mailing list