On 12/24/21 06:30, david whiting wrote:
Hi Jeff,
The script below will build version 4.9 on Ubuntu 20.04 LTS. I have
verified this on a clean installation of Ubuntu.
One thing that tripped me up a few times is remembering to tick
"Source Code" in the Software And Updates dialogue. If you don't do
this, it will fail.
Please note that I have used -y with apt install so it will install
and build without asking.
I will try to get around to putting this in the wiki to make it easier
for people to find.
=== build.sh ===
## Ubuntu 20.04
## 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"
## Change this if you want to install it somewhere else.
INSTALLDIR=/opt/gnucash
sudo apt -y update
sudo apt -y upgrade
sudo apt -y install git
sudo apt -y build-dep gnucash
## To build series 4 of gnucash on Ubuntu 20.04
sudo apt -y install libboost-program-options1.71-dev
mkdir -p $SOURCEDIR
mkdir -p $BUILDDIR
## Clone gnucash source from git
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 ===
Fingers-crossed this will work for you.
David
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 *
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu impish InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease [110 kB]
Hit:4 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu impish InRelease
Hit:5 http://archive.canonical.com/ubuntu impish InRelease
Hit:6 http://ppa.launchpad.net/teejee2008/ppa/ubuntu impish InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu impish-backports InRelease
[101 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu impish-security InRelease [110
kB]
Hit:9 http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu impish
InRelease
Hit:10 http://ppa.launchpad.net/ubuntuhandbook1/avidemux/ubuntu impish
InRelease
Fetched 321 kB in 2s (197 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.32.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*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
--
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint: 8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.