Difference between revisions of "GnuCash Sources"

From GnuCash
Jump to: navigation, search
(Using a shell:: and shorter)
(Replace obsolete material with pointers to pages that are more frequently maintained.)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== GnuCash Sources ==
 
== GnuCash Sources ==
===Stable Releases===
 
Stable releases of the GnuCash source code are available for download from:
 
* [https://www.gnucash.org/index.phtml Gnucash Website] Linux source link;
 
* [https://www.gnucash.org/download.phtml Gnucash website Download] page, bzip2 compressed tarball link;
 
* [https://sourceforge.net/projects/gnucash/?source=directory 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-{{Version}}-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.
+
GnuCash source code is available to the general public from our [https://github.com/gnucash/Gnucash git mirror repository], see [[Git]] for information on how to clone the repository or fork it on GitHub.
  
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.
+
We also distribute tarballs of releases at [https://sourceforge.net/projects/gnucash/files SourceForge] and [https://github.com/gnucash/Gnucash/releases Github].
  
===Using a shell: ===
+
We have [[Building|generic instructions for building]] as well as more detailed instructions for particular platforms like [[Building_on_Windows|Microsoft Windows]], [[MacOS/Quartz|macOS]] and [[Building_On_Linux|Linux]].
<SyntaxHighlight lang="sh">
 
export VERSION=3.1 # One place to adjust the Version
 
export TARBALL=gnucash-$VERSION-1.tar.bz2
 
export URL=https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/$VERSION
 
cd ~/Downloads # "~" short for "$HOME" = "/home/<user>"
 
wget $URL/$TARBALL
 
sha256sum $TARBALL # Integrity check: Compare the output with the sha256sum from the URL
 
tar -xjvf $TARBALL -C ~/Applications
 
</SyntaxHighlight>
 
 
 
For the very latest source code, get the sources with [[Git]] or
 
: use the latest release source file of type <tt>gnucash-<version>.tar.gz</tt> from [https://sourceforge.net/projects/gnucash/files/ Sourceforge].
 
: '''Do not attempt to use tarballs from GitHub.'''
 
Examine the [[Dependencies]] wiki page and the [https://github.com/Gnucash/gnucash/blob/master/README.dependencies README.dependencies] file for the list of build dependencies for your distribution, the [https://github.com/Gnucash/gnucash/blob/master/README.git README.git] file for notes on compiling gnucash, and the [https://github.com/Gnucash/gnucash/blob/master/HACKING 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 [https://www.gnucash.org/download.phtml | 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
 
<SyntaxHighlight lang="sh">
 
git clone -b maint https://github.com/Gnucash/gnucash.git   
 
</SyntaxHighlight>
 
# 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.
 

Latest revision as of 03:58, 23 December 2023

GnuCash Sources

GnuCash source code is available to the general public from our git mirror repository, see Git for information on how to clone the repository or fork it on GitHub.

We also distribute tarballs of releases at SourceForge and Github.

We have generic instructions for building as well as more detailed instructions for particular platforms like Microsoft Windows, macOS and Linux.