On 06/29/2018 11:45 AM, John R. Sowden wrote: > It seems that GC is a very popular accounting program, and > Ubuntu/Linux is a very popular Operating System, yet when there is an > upgrade in GC, I cannot find a straightforward method of updating GC > under Ubuntu/Linux. > > I understand that there is a delay before the new version of GC is in > the Ubuntu Software download system. That is internal to Ubuntu. But > there are alternatives, such as an alternative repository and self > compiling. Oh yes, what about pre-compiled binaries like Windows and > Mac? > > Each could have clear concise instructions on how to perform the task. > > One could direct the user with specific commands to go th the > repository that gets the upgrade first. > > A script could be written and published with copious comments, testing > for dependencies, loading them, doing a security check of the > downloaded files, compiling and testing. > > Google has not turned out to be my friend, otherwise I would not be > writing this. There are articles years old, no install scripts, no > suggestions of repositories with instructions. > > Feel free to prove me wrong, I have spent a couple of hours searching > with many selected key words, > > John > Having just done a download and compile to my Ubuntu 18.04, let me share with you what I did. Sometimes reading the web sites leaves one (at least me) scratching their head vigorously -- in my case not a good idea with the hair I have left!
1. Read this page: https://wiki.gnucash.org/wiki/BuildUbuntu16.04 It works for 18.04 also. You didn't say which version of Ubuntu so I am presuming either 16.04 or 18.04 You may need to install a bunch of libraries. I found that a couple or more were already on my box. My box had some old libraries hanging around that I had to manually remove in /usr/src: sudo rm -rf /usr/src/gtest /usr/src/gmock See this note: https://larry-price.com/blog/2013/10/13/installing-gtest-and-gmock-libs-in-ubuntu-13-dot-04/ But don't worry. Just remove the above two entries (if they exist) and the install of googletest and googlemock will work. I ended up uninstalling the two packages on my way to figuring out what had happened. sudo apt-get install build-essential sudo apt-get install cmake sudo apt-get install libtool libltdl-dev sudo apt-get install libglib2.0 libglib2.0-dev #glib2 > v2.40.0 sudo apt-get install icu-devtools libicu-dev sudo apt-get install libboost-all-dev # boost > 1.50.0 - requires locale and regex built with ICU support sudo apt-get install guile-2.0 guile-2.0-dev # guile >=2.0.0 sudo apt-get install swig3.0 # swig >2.0.10 *(swig3.0 on Ubuntu18.04)* not required if building from tarball, sudo apt-get install googletest sudo apt-get install googlemock sudo apt-get install libgtest-dev # but from any version control system sudo apt-get install libxml2 libxml++2.6-dev sudo apt-get install libxslt1.1 libxslt1-dev sudo apt-get install xsltproc sudo apt-get install texinfo # required for makeinfo sudo apt-get install gtk+3.0 sudo apt-get install libgtk-3-dev sudo apt-get install libwebkit2gtk-4.0-37 # > webkit2gtk-3.0 sudo apt-get install libwebkit2gtk-4.0-dev sudo apt-get install libdbi1 libdbi-dev # > v0.8.3 # one of the following three if you want a database backend option: sudo apt-get install libdbd-pgsql # PostgreSQL database sudo apt-get install libdbd-mysql # MySQL database sudo apt-get install libdbd-sqlite3 # Sqlite database sudo apt-get install libofx-dev sudo apt-get install aqbanking-tools libaqbanking-dev # > v4.0.0 sudo apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev sudo apt-get install ktoblzcheck libktoblzcheck1-dev sudo apt-get install python3-pytest As noted above, my box had many of these already so apt-get skipped the install for them and told me I already had the latest. 2. Download this source code from: https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/3.2/gnucash-3.2.tar.gz/download 3. Move the file to where you want to house your source: I made mine $HOME/Projects/GnuCash. mkdir -p $HOME/Projects/GnuCash cd Downloads mv gnucash* $HOME/Projects/GnuCash 4. Go there and build your source and build folders cd ../Projects/GnuCash gunzip gnucash* tar -xf gnucash* mkdir mybuild cd mybuild 5. Compile and install cmake ../gnucash* make sudo make install I'll admit that I made several mis-steps along the way and needed help from the great folks here. Hopefully this will get you going. Oh, uninstall gnucash first if you already have a version. I failed to do that and had to remove some outdated files. 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.