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

davidcousens49 at gmail.com davidcousens49 at gmail.com
Mon Dec 27 02:05:41 EST 2021


Jeff,

In another thread David Whiting has provided scripts to install GnuCash 4.9 on
either Ubuntu 21.10 or 20.04 which are now posted on the Wiki her at 
https://wiki.gnucash.org/wiki/Building_On_Linux#Ubuntu. There are slight
differences between the 21.10 and 20.04 scripts.  I have attached a copy of the
shell script file. if you save this to a location in your home directory e.g.
$HOME/Document/gnucash/buils_script and then open a terminal at that directory
and execute the following commands in the terminal

chmod +x build_GC4.9.sh./build_GC4.9.sh

and it should all be done for you. The script will ask for your sudo password.
I can confirm that David Whitings script also works on Linux Mint 20.2.

David Cousens

On Sun, 2021-12-26 at 23:58 -0600, Jeff wrote:
> On 12/26/21 1:32 PM, Stephen M. Butler wrote:
> > On 12/24/21 11:58, davidcousens49 at gmail.com wrote:
> > > Stephen, Jeff
> > > 
> > > Try
> > > $apt-cache search libboost
> > 
> > Found these:
> > libboost-program-options-dev - program options library for C++ 
> > (default version)
> > libboost-program-options1.74-dev - program options library for C++
> > libboost-program-options1.74.0 - program options library for C++
> > 
> Mine shows:
> 
> libboost-program-options1.67-dev - program options library for C++
> libboost-program-options1.67.0 - program options library for C++
> 
> There is no libboost-program-options-dev - program options library for 
> C++ (default version) listed.  It does however show to be installed in 
> Synaptic Pkg Manager.
> 
> > > This will list the libboost options available to install from apt. If 
> > > libboost-
> > > program-options1.71-dev is not listed it is possible that there will 
> > > be a
> > > generic version libboost-program-options-dev  or 
> > > libboost-program-options1.67-
> > > dev or possibly even a more recent version if one exists. AFAIK the 
> > > libboost-
> > > program-options-dev will load the most recent available version of 
> > > the library.
> > > GC will work with v1.67 or 1,71 of libboost. Once you have identified a
> > > candidate for libboost to install use
> > > $sudo apt -y install libboost-program-options-dev
> > > 
> > So did:
> > sudo apt -y install libboost-program-options-dev
> > 
> > and got:
> > 
> > Reading package lists... Done
> > Building dependency tree... Done
> > Reading state information... Done
> > libboost-program-options-dev is already the newest version 
> > (1.74.0.3ubuntu6).
> > libboost-program-options-dev set to manually installed.
> > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> > 
> > 21.10 must have the 1.74 version.
> > 
> > --Steve
> > 
> > 
> When I did sudo apt -y install libboost-program-options-dev, I got:
> 
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libboost-program-options-dev is already the newest version 
> (1.71.0.0ubuntu2).
> libboost-program-options-dev set to manually installed.
> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
> 
> 
> I am running Ubuntu 20.04.3 LTS., 64-bit, Gnome version 3.36.8, with 
> windowing system X11.  If any of that is important.
> 
> 
> ------------
> 
> After spending 4 hours looking for and installing dependencies the 
> following message seems to be a recurring theme in various forms in 
> CMakeError.log.  Always referring to pthreads or threads.
> 
> -Begin quote-
> 
> Determining if the function pthread_create exists in the pthreads failed 
> with the following output:
> Change Dir: /Development/Documents/gnucash/build/CMakeFiles/CMakeTmp
> 
> Run Build Command(s):/usr/bin/make cmTC_0899f/fast && /usr/bin/make -f 
> CMakeFiles/cmTC_0899f.dir/build.make CMakeFiles/cmTC_0899f.dir/build
> make[1]: Entering directory 
> '/Development/Documents/gnucash/build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_0899f.dir/CheckFunctionExists.c.o
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o 
> CMakeFiles/cmTC_0899f.dir/CheckFunctionExists.c.o   -c 
> /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
> Linking C executable cmTC_0899f
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0899f.dir/link.txt 
> --verbose=1
> /usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create 
> CMakeFiles/cmTC_0899f.dir/CheckFunctionExists.c.o  -o cmTC_0899f -lpthreads
> /usr/bin/ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
> make[1]: *** [CMakeFiles/cmTC_0899f.dir/build.make:87: cmTC_0899f] Error 1
> make[1]: Leaving directory 
> '/Development/Documents/gnucash/build/CMakeFiles/CMakeTmp'
> make: *** [Makefile:121: cmTC_0899f/fast] Error 2
> 
> --End quote
> 
> Any idea what dependency I failed to install?
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_GC4.9.sh
Type: application/x-shellscript
Size: 847 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20211227/5ad7ca66/attachment.bin>


More information about the gnucash-user mailing list