Difference between revisions of "GnuCash Sources"
(→Using a shell:: improve script) |
m (→Using a shell:: another $HOME) |
||
Line 18: | Line 18: | ||
wget https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/$VERSION/$TARBALL | 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 | sha256sum $TARBALL # Integrity check: Compare the output with the sha256sum from the URL | ||
− | tar -xjvf $TARBALL -C | + | tar -xjvf $TARBALL -C $HOME/Applications |
</SyntaxHighlight> | </SyntaxHighlight> | ||
Revision as of 03:41, 15 June 2018
Contents
GnuCash Sources
Stable Releases
Stable releases of the GnuCash source code are available for download from:
- Gnucash Website Linux source link;
- Gnucash website Download page, bzip2 compressed tarball link;
- SourceForge GnuCash page.
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.10-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/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
- Select the link bzip compressed tarball for GnuCash 3.x stable release on the page | Gnucash Download
- or Select either the maint branch or master branch as required then click the Download button and select Download ZIP to download the tarball.
- Save to a suitable directory within your home directory (e.g. /home/<user>/Downloads).
- 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)).
- 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
- The to level directory downloaded by git will be named "gnucash" not "gnucash-3.<x>".
- Either rename it or subsitute "gnucash" where "gnucash-3.<x>" occurs in the following commands.