Difference between revisions of "GnuCash Sources"

From GnuCash
Jump to: navigation, search
m (Stable Releases: Fix appearance of external links; use template for latest released version)
(Using a shell:: improve script)
Line 12: Line 12:
  
 
===Using a shell: ===
 
===Using a shell: ===
<SyntaxHighlight lang="sh">cd /home/<user>/Downloads</SyntaxHighlight>
+
<SyntaxHighlight lang="sh">
<SyntaxHighlight lang="sh">tar -xjvf gnucash-3.1-1.tar.bz2 -C /home/<user>/Applications</SyntaxHighlight>
+
export VERSION=3.1
 +
export TARBALL=gnucash-$VERSION-1.tar.bz2
 +
cd $HOME/Downloads
 +
wget https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/$VERSION/$TARBALL
 +
sha256sum $TARBALL # Integrity check: Compare the output with the sha256sum from the URL
 +
tar -xjvf $TARBALL -C /home/<user>/Applications
 +
</SyntaxHighlight>
  
 
For the very latest source code, get the sources with [[Git]] or
 
For the very latest source code, get the sources with [[Git]] or

Revision as of 03:39, 15 June 2018

GnuCash Sources

Stable Releases

Stable releases of the GnuCash source code are available for download from:

These links all point to the SourceForge Download page and will download a zipped (compressed) tarball containing the sources for gnucash with a name of the form gnucash-<major>.<minor>-<packing>.tar.<bz2> , e.g. gnucash-5.6-1.tar.bz2. Some earlier stable releases are also available from this page by expanding the See All Activity link and selecting the desired version from the drop down list.

You should save this file to a suitable location, e.g. Downloads directory in your home directory (/home/<user>/Downloads where <user> is your username.

You should then extract the source code from the zipped archive to a suitable directory under your home directory where you will build gnucash, e.g. something like /home/<user>/Applications.

Using a shell:

export VERSION=3.1
export TARBALL=gnucash-$VERSION-1.tar.bz2
cd $HOME/Downloads
wget https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/$VERSION/$TARBALL
sha256sum $TARBALL # Integrity check: Compare the output with the sha256sum from the URL
tar -xjvf $TARBALL -C /home/<user>/Applications

For the very latest source code, get the sources with Git or

use the latest release source file of type gnucash-<version>.tar.gz from Sourceforge.
Do not attempt to use tarballs from GitHub.

Examine the Dependencies wiki page and the README.dependencies file for the list of build dependencies for your distribution, the README.git file for notes on compiling gnucash, and the HACKING file for notes on hacking the code

Download tarball

  1. Select the link bzip compressed tarball for GnuCash 3.x stable release on the page | Gnucash Download
  2. or Select either the maint branch or master branch as required then click the Download button and select Download ZIP to download the tarball.
  3. Save to a suitable directory within your home directory (e.g. /home/<user>/Downloads).
  4. Extract the gnucash-3.<x> directory to a suitable directory under your home directory (e.g. either Downloads as above or something like /home/<user>/Applications (create if required)).
  5. Substitute appropriate minor release number for <x> from {0,1,2..} where it appears in the commands below.

Using git

In a shell enter

git clone -b maint https://github.com/Gnucash/gnucash.git
  1. The to level directory downloaded by git will be named "gnucash" not "gnucash-3.<x>".
  2. Either rename it or subsitute "gnucash" where "gnucash-3.<x>" occurs in the following commands.