[GNC] Build From Source Near Impossible

Robert Simmons rsimmons0 at gmail.com
Sat Aug 6 09:07:06 EDT 2022


First of all, Impish is already EOL. You will need to use a flavor of 22.04
LTS for the following. The documentation for how to build GnuCash is
confusing and not all in one place. The following begins with a fresh
install of Lubuntu 22.04 LTS. I use Vagrant so that everything is
deterministically built once I have finished figuring out the correct set
of steps. But, Vagrant is not a requirement; you don't have to use that.
The patch used below is the following. Put it in your /tmp directory before
starting.
https://pastebin.com/qUmxyyLq

sudo patch /etc/apt/sources.list /tmp/sources_list.patch
sudo apt-get build-dep gnucash
mkdir ~/opt
wget
https://github.com/Gnucash/gnucash/releases/download/4.11/gnucash-4.11.tar.gz
mkdir build-gnucash-4.11
tar -zxvf gnucash-4.11.tar.gz
cd build-gnucash-4.11/
cmake -DWITH_PYTHON=ON -DCMAKE_INSTALL_PREFIX=$HOME/opt ../gnucash-4.11
make
make install


I hope this helps.

On Sat, Aug 6, 2022 at 7:03 AM crusadeon09 via gnucash-user <
gnucash-user at gnucash.org> wrote:

> I'm running Ubuntu, 21.10, Impish Indri.
>
> I downloaded the 4.11 tarball, gnucash-4.11.tar.bz2
>
> I followed these directions:
> https://wiki.gnucash.org/wiki/Building
> https://wiki.gnucash.org/wiki/Build_Tools
> https://wiki.gnucash.org/wiki/Building_On_Linux
>
> I tried changing repositories. I ran "sudo apt update" multiple times. The
> dependencies for 4.11 simply wouldn't install.
>
> (base) chris at chris-B550-AORUS-ELITE:~$ sudo apt-get build-dep gnucash
> Reading package lists... Done
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> libgtk-3-dev : Depends: gir1.2-gtk-3.0 (= 3.24.30-1ubuntu1) but
> 3.24.30-1ubuntu1.1 is to be installed
> Depends: libgdk-pixbuf-2.0-dev (>= 2.40.0) but it is not going to be
> installed or
> libgdk-pixbuf2.0-dev (>= 2.40.0) but it is not going to be installed
> Depends: libgtk-3-0 (= 3.24.30-1ubuntu1) but 3.24.30-1ubuntu1.1 is to be
> installed
> libpython3.9-dev : Depends: libpython3.9-stdlib (= 3.9.7-2build1) but
> 3.9.7-2ubuntu0.1 is to be installed
> Depends: libpython3.9 (= 3.9.7-2build1) but 3.9.7-2ubuntu0.1 is to be
> installed
> libsepol1-dev : Depends: libsepol1 (= 3.1-1ubuntu2) but 3.1-1ubuntu2.1 is
> to be installed
> libwebkit2gtk-4.0-dev : Depends: libwebkit2gtk-4.0-37 (=
> 2.34.6-0ubuntu0.21.10.1) but 2.36.3-0ubuntu0.21.10.1 is to be installed
> Depends: gir1.2-webkit2-4.0 (= 2.34.6-0ubuntu0.21.10.1) but
> 2.36.3-0ubuntu0.21.10.1 is to be installed
> Depends: libsoup2.4-dev (>= 2.40) but it is not going to be installed
> Depends: libjavascriptcoregtk-4.0-dev (= 2.34.6-0ubuntu0.21.10.1) but it
> is not going to be installed
> libxml2-dev : Depends: libxml2 (= 2.9.12+dfsg-4ubuntu0.1) but
> 2.9.12+dfsg-4ubuntu0.2 is to be installed
> python3.9-dev : Depends: python3.9 (= 3.9.7-2build1) but 3.9.7-2ubuntu0.1
> is to be installed
> Depends: libpython3.9 (= 3.9.7-2build1) but 3.9.7-2ubuntu0.1 is to be
> installed
> E: Unable to correct problems, you have held broken packages.
>
> I tried loading them individually, but the names are just slightly off.
> https://wiki.gnucash.org/wiki/Dependencies
>
> Ubuntu sees them differently I guess. https://packages.ubuntu.com/
>
> After a couple of hours of carefully trying to build from source, I give
> up. Looks like Ubuntu Software Center has 4.11 in a flatpak.
>
> Does anyone have any better instructions? I'd even submit to watching a
> video at this point.
>
> Sent with [Proton Mail](https://proton.me/) secure email.
> _______________________________________________
> 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