GnuCash with MySQL / SQLite




I’m trying to build GnuCash with GDA support to connect with MySQL or SQLite. I’ll start with SQLite since its simpler. I tried earlier today but was stumped because I’m using XFCE4. Not sure if that’s a big problem or not. I’m installing the binary from the debian resources just to get started.

Seems to work with XFCE4 fine, I guess I was confused by the need for libgnomeprint.

I started out by checking out the gda-dev2 sources from their subversion repository, then running ./autoconf.sh. I had to install libglib2.0-dev, intltool,


Running automake --add-missing --gnu  ...
src/business/business-gnome/schemas/Makefile.am:13: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/business/business-gnome/schemas/Makefile.am:19: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/gnome-utils/schemas/Makefile.am:13: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/gnome-utils/schemas/Makefile.am:19: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/gnome/schemas/Makefile.am:23: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/gnome/schemas/Makefile.am:29: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/import-export/hbci/schemas/Makefile.am:13: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/import-export/hbci/schemas/Makefile.am:19: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/import-export/schemas/Makefile.am:13: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
src/import-export/schemas/Makefile.am:19: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
**Error**: automake failed.

I’m giving up on trying to install on my XFCE4 machine and am now trying to do so on a stock Ubuntu Gutsy machine. I was able to install libgnome-dev which was giving me a hard time on the xubuntu machine, probably because that machine was a mix of etch, lenny, sid, feisty, and gutsy. I know, I know….

Strarting off with:


sudo apt-get install libgnome-dev subversion
mkdir src
cd src
svn co http://svn.gnucash.org/repo/gnucash/branches/gda-dev2/ ./
sudo apt-get install libtool intltool automake autoconf
sudo apt-get install libglib2.0-dev libgtkhtml3.8-dev swig automake1.9 guile-gnome0-dev guile-1.6-dev

Then came this:


NOTE: Just run configure.  Even if something told you to run
      aclocal, automake, or anything else above, IGNORE IT.
      Everything has been run properly.  Just run configure...

Nice!

Then…


cc1: warnings being treated as errors
gnc-schedxaction-gda.c: In function 'gnc_gda_save_schedxaction':
gnc-schedxaction-gda.c:261: warning: 'guid' is used uninitialized in this function

So now I’m trying “./configure –disable-error-on-warning”. That worked, I was able to “sudo make install” but now I’m getting this:


Implementation missing: database_constraints_update_list() in gda-dict-database.c line 1214
Implementation missing: database_constraints_update_list() in gda-dict-database.c line 1214
Segmentation fault (core dumped)

4 Responses to “GnuCash with MySQL / SQLite”


  1. 1 yermat

    I got troubles too to build GnuCash from SVN. But it has too many dependencies, especially complicated one as slib.

    Finally I achieve to build from source by using the debian source:
    apt-get build-dep gnucash

    then in gnucash directory:
    ./configure
    make
    make install

    Any attempts to install in other directory, or running directly the compiled stuff has failed… :-(
    At least, /usr/local/bin/gnucash launch the SVN gnucash version…

    Hope it helps.

  2. 2 Albert

    Hi yermat, thanks for that. I’m trying again and it helped. Here’s what I did:

    apt-get build-dep gnucash
    apt-get install automake autoconf intltool texinfo
    –get gnucash sources–
    cd gnucash-src/src
    sh autogen.sh
    ./configure –enable-compile-warnings
    make

  3. 3 Albert

    PS - I am running debian lenny on a Macbook intel with Gnome as my desktop environment

  4. 4 Albert

    I needed:

    –enable-gda

    in the configure command:

    ./configure –disable-error-on-warning –enable-gda

Leave a Reply