[GNC] Building 5.1 on Ubuntu 22.04
Mark at Lorimark
mark at lorimarksolutions.com
Tue May 30 14:03:17 EDT 2023
Hi Mike,
I am just trying to get set up with a dev enviro myself. To that end, I
have made two efforts.
1. docker
2. VM
I have docker scripts that seem to work to set up a new image with all
the necessary build-tools, but running gnucash from within docker
creates some challenges so I started a second effort to build a VM.
For the VM I have two scripts that I execute to "build up" the box. I
have attached both here (note these scripts are brand-new, so still some
editing to do within them - hope they help);
> serveradmin at gnucash-dev:~$ cat -n gnucash-dev-setup.sh
> 1
> 2 #
> 3 # This will install all the necessary libraries and development
> 4 # of gnucash
> 5 #
> 6 # run as root
> 7 #
> 8
> 9 echo "update..."
> 10 apt-get update -q
> 11 apt-get upgrade -y
> 12 apt-get dist-upgrade -y
> 13 apt-get autoremove -y
> 14
> 15 #
> 16 # base stuff
> 17 #
> 18 echo "base stuff..."
> 19 apt-get install -y \
> 20 wget \
> 21 mc \
> 22 vim \
> 23 lynx \
> 24 wget
> 25
> 26 #
> 27 # library build stuff
> 28 #
> 29 echo "library build stuff..."
> 30 apt-get install -y \
> 31 libglib2.0-dev \
> 32 pkg-config \
> 33 make \
> 34 dconf-cli \
> 35 git \
> 36 gettext \
> 37 gcc \
> 38 g++ \
> 39 libxml2-dev \
> 40 libxslt1-dev \
> 41 xsltproc \
> 42 webkit2gtk-4.0-dev \
> 43 swig \
> 44 guile-2.2-dev \
> 45 gwenhywfar-tools \
> 46 build-essential \
> 47 libofx-dev \
> 48 libgtest-dev \
> 49 libdbi-dev \
> 50 libxml2-utils \
> 51 libboost-all-dev \
> 52 libboost-date-time-dev \
> 53 libboost-filesystem-dev \
> 54 libboost-locale-dev \
> 55 libboost-regex-dev \
> 56 libboost-program-options-dev \
> 57 libboost-system-dev
> 58
> 59 #
> 60 # gnucash build-dep stuff
> 61 # update sources.list so we can pull the "build-dep gnucash" below
> 62 #
> 63 echo "gnucash build-dep stuff"
> 64 # sed -i '/^#.*deb-src/s/^#//' /etc/apt/sources.list
> 65 echo "build-dep"
> 66 apt-get -y build-dep gnucash
> 67
> 68 echo "********"
> 69 echo "********"
> 70 echo "********"
> 71 echo "********"
> 72 echo "********"
> 73 echo "all set! run 'gnucash-src-setup.sh' as your regular user to fetch and set up your dev working environment"
> 74
> serveradmin at gnucash-dev:~$ cat -n gnucash-src-setup.sh
> 1 #
> 2 # Run this script to fetch and set up a dev
> 3 # environment. This will create the project
> 4 # folder called 'gnucash-dev' in your current
> 5 # folder, and then fetch the gnucash sources
> 6 # and set up a build-directory and then cause
> 7 # gnucash to build. At the end, you should
> 8 # have a good working gnucash binary available
> 9 # for executing.
> 10 #
> 11
> 12 mkdir gnucash-dev
> 13 cd gnucash-dev
> 14 git clone https://github.com/Gnucash/gnucash.git src
> 15 mkdir build
> 16 cd build
> 17 cmake ../src
> 18
~mark petryk
~c:469-556-5075
~t:4695565075 at mms.att.net
~w:http://www.lorimarksolutions.com
~h:KG5OBY
~q:might as well... it's not getting any cheaper
On 5/30/23 12:52, M wrote:
> I am trying to build gnucash 5.1 on Ubuntu 22.04, if thats possible.
>
> I have run apt-get update and apt-get upgrade, and everything is up to
> date.
> I have run sudo apt build-dep gnucash, and receive:
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> When running cmake, I get the following error:
> Requested 'gwenhywfar >= 5.6.0' but version of gwenhywfar is 5.1.3
>
> Any idea how to install this update on Ubuntu 22.04?
> When I run
> sudo apt-get install gwenhywfar-tools
> I get
> gwenhywfar-tools is already the newest version (5.1.3-1build1)
>
> Is there any way to get the newer package on Ubuntu 22.04?
>
> Thanks,
>
> Mike
>
> _______________________________________________
> 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