Buiding Gnucash for Ubuntu

pre, code {color:maroon; font-weight:bold;}

This is how I built it (for 10.04)

  • From here: wiki.gnucash.org/wiki/Building Ubuntu 10.04 LTS (Lucid Lynx)
    • sudo aptitude build-dep gnucash
    sudo aptitude install texinfo subversion intltool libdbi0-dev libdbd-{sqlite3,pgsql,mysql} guile-1.8 guile-1.8-dev doxygen libwebkit-dev
    • Configure Guile:
    • cd /usr/share/guile/1.8; sudo ln -s ../../slib slib; sudo guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
  • We also need some other things:
    • sudo apt-get install -y libtool
    • sudo apt-get install -y libdbi0-dev libdbd-mysql libdbd-mysql libwebkit-dev needed for configure
  • Find the tag to install from: svn.gnucash.org/trac/browser#gnucash/tags
    • mkdir -p ~/code/gnucash
    • svn checkout http://svn.gnucash.org/repo/gnucash/tags/2.4.10 ~/code/gnucash/gnucash-2.4.10
    • svn checkout http://svn.gnucash.org/repo/gnucash-docs/tags/2.4.1 ~/code/gnucash/gnucash-docs-2.4.1
  • Build it
    • cd ~/code/gnucash/gnucash-2.4.10
    • ./autogen.sh
    • ./configure --prefix=/opt/gnucash --disable-error-on-warning --enable-compile-warnings --with-html-engine=webkit
    • make ...takes a while
    • sudo rm -Rf /opt/gnucash
    • sudo make install
  • Build docs
    • cd ~/code/gnucash/gnucash-docs-2.4.1
    • ./autogen.sh
    • ./configure --prefix=/opt/gnucash
    • make
    • sudo make install