[GNC] Building Gnucash on Fedora 37 - "No package 'glib-2.0' found" error
Stephen M. Butler
Stephen.M.Butler51 at gmail.com
Thu Mar 9 18:05:31 EST 2023
This is the package for Ubuntu.
apt --yes --force-yes install libglib2.0 libglib2.0-dev
In fact, here are all the dependencies needed:
apt --yes --force-yes install build-essential
apt --yes --force-yes install cmake
apt --yes --force-yes install ninja-build
apt --yes --force-yes install libglib2.0 libglib2.0-dev
apt --yes --force-yes install libxml2 libxml++2.6-dev libxml2-utils
apt --yes --force-yes install libxslt1.1 libxslt1-dev
apt --yes --force-yes install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
apt --yes --force-yes install gtk+3.0 libgtk-3-dev
apt --yes --force-yes install zlib1g zlib1g-dev
apt --yes --force-yes install guile-2.0 guile-2.0-dev
apt --yes --force-yes install swig
apt-get install libboost-all-dev
apt-get install libsecret-1-0 libsecret-1-0-dev
apt-get install aqbanking-tools libaqbanking-dev
apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
apt-get install ktoblzcheck libktoblzcheck1-dev
apt-get install libofx-dev
apt-get install xsltproc
apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3
apt-get install python3-pytest
apt --yes --force-yes install googletest
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint: 8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
On 3/9/23 14:52, Vivek Gani wrote:
> 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