Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home How To OS X Admin Building Programs on OS X gnucash gnucash 2.0.5

gnucash 2.0.5

I previously built gnucash 2.0.0 on my Core 2 Duo White iMac 2.16 GHz shortly after these instructions were posted. It all worked splendidly. Unfortunately it did not work on my white ibook G3, but I lost patience with it. I have brand new Macbook Pro, so I'm not worried about the G3 anyway. The G3 is still running gnucash 1.8, or so, and it works fine.

Today, I'm trying to upgrade my Macbook Pro to gnucash 2.0.5. In theory, this should be pretty damn simple. Here's how I'm doing it (assuming the instructions above have all been followed to produce a proper building environment):

  1. Set the build flags to make use of fink:
    setenv CFLAGS "-L/sw/lib -I/sw/include"
    setenv CPPFLAGS "-L/sw/lib -I/sw/include"
    setenv LDFLAGS "-L/sw/lib"
    setenv PKG_CONFIG_PATH "/sw/lib/pkgconfig"
    setenv PATH /sw/share/guile/1.6/scripts/binoverride:${PATH}

    Of course, I use tcsh rather than bash. The stock shell on OS X is bash, so if you aren't sure you use tcsh, then you will want to substitute those lines for the bash equivalents, e.g.:

    export PATH=/sw/share/guile/1.6/scripts/binoverride:$PATH

    CRITICAL One thing I noticed is that, if multiple versions of guile are installed, configure will crash complaining that the guile version is not high enough when following the original instructions. Note that I have corrected for this problem above.

  2. After downloading and unzipping the new gnucash, let's try this from within the unpacked directory:

    ./configure --with-g-wrap-prefix=/sw --enable-compile-warnings
    make
  3. At this point, make crashed with the following error:
    /sw/include/gtkhtml/gtkhtml.h:28:34: error: libgnome/gnome-paper.h: No such file or directory

    A google search suggests that two versions of gtkhtml exist and so I renamed "/sw/include/gtkhtml" to "/sw/include/not.gtkhtml" hoping for better results:

    sudo mv /sw/include/gtkhtml /sw/include/not.gtkhtml
    make
  4. Effectively removing the "gtkhtml" by renaming it worked like a dandy. The only thing left to do is
    sudo make install
  5. I decided to rename the "gtkhtml" directory back, in case it is important for other fink operations:
    sudo mv /sw/include/not.gtkhtml /sw/include/gtkhtml