[GNC] how to remove both GNC 4.2 and Flathub version 4.8 so can upgrade to 4.9 on Ubuntu 20.04lts

david whiting dw at davidwhiting.me.uk
Fri Dec 24 13:03:32 EST 2021


On Fri, 24 Dec 2021 at 17:07, Stephen M. Butler
<Stephen.M.Butler51 at gmail.com> wrote:

[...]

> I am on Ubuntu 21.10 and have been lagging way behind.  So tried this
> morning.  All was well until the libboost portion.
>
> *sudo apt -y update **
> **sudo apt -y upgrade **
> **sudo apt -y install git **
> **sudo apt -y build-dep gnucash *
>
[...]
>
> *sudo apt -y install libboost-program-options1.71-dev *
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> Package libboost-program-options1.71-dev is not available, but is
> referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> E: Package 'libboost-program-options1.71-dev' has no installation candidate

The previous script was to build on 20.04. You don't need to install
it if you are using Ubuntu 21.10. I have just built gnucash on a fresh
installation of Ubuntu 21.10 with the following script. Again, make
sure you check the "Source Code" box in "Software and Updates".
When I get around to it I want to add each script to the wiki so it is
clear what is needed for each recent version.

=== build.sh ===

## Ubuntu 21.10
## In "Software and Updates":
## Tick "Source code"
## Tick "Community-maintained free and open-source software (Universe)"

## Change this if you want to build it somewhere else.
SOURCEDIR="$HOME/Documents/gnucash/source"
BUILDDIR="$HOME/Documents/gnucash/build"

INSTALLDIR=/opt/gnucash

sudo apt -y update
sudo apt -y upgrade
sudo apt -y build-dep gnucash
sudo apt -y install git

mkdir -p $SOURCEDIR
mkdir -p $BUILDDIR

## Clone gnucash source from git, if it is not already there
git clone https://github.com/Gnucash/gnucash.git $SOURCEDIR

## Checkout version 4.9
cd $SOURCEDIR
git checkout -b 4.9 4.9

cd $BUILDDIR
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR $SOURCEDIR

make

=== End of build.sh ===

David


More information about the gnucash-user mailing list