Archive for December 29th, 2007

How Safe Is Your Food?

Interesting facts, regarding facts of food poisoning: click here.And when I am thinking I had same sort of acute problems, just about a year ago… Now, I am thinking twice, before putting something in my mouth.

GnuCash on Mac OS X Leopard

GnuCash is a cross-platform financial accounting software for personal or small business use. It adders to dual accounting professional principles to ensure accurate balance books and accurate reports.

It is licensed under GNU/GPL and it is known to work on any flavour of GNU/Linux, BSD or Solaris, as well on Mac OS X and Microsoft Windows.

Next we will concentrate on Mac OS X installation, using macports, along with the X11 interface. First of all, be sure macports is updated to the last version (currently 1.6.0).

Let’s start Terminal and type:

sudo port -d selfupdate 

This should ensure you are updated. From my previous experience installing GnuCash, a simple install will fail due to some dependencies to guile16 package, so I suggest using +guile16 variant:

sudo port -v install gnucash +guile16

This should do the trick.

As we speak, I am running the installation process in background. It will take a while, but I will come back and edit this post to report the result.

The above failed, so let’s try to install guile16 and slib-guile16 prior to installing GnuCash package:

sudo port -fv install guile16
sudo port -fv install slib-guile16
sudo port -v install gnucash

Update:

It failed again to compiling a port called avahi :(

I will remove /opt folder, reinstall macports and start from a clean install. More info will be posted here soon.

Update:

Oops. According to GnuCash wiki, there is a bug in avahi port, which GnuCash is depending on. It seems it is not possible to install out-of-the-box GnuCash, unless we manually alter avahi port to not include python pre-build packages.

Update (30.12.2007):

Finally I got it working. Here is how:

1. Edit /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/avahi/Portfile

2. Locate the following block:

configure.args \
    --disable-autoipd \
    --disable-qt3 \
    --disable-qt4 \
    --disable-mono \
    --disable-monodoc

3. Replace it with:

configure.args \
    --disable-autoipd \
    --disable-qt3 \
    --disable-qt4 \
    --disable-mono \
    --disable-monodoc\
    --disable-python

4. Save

5. After cleaning all macports run from Terminal:

sudo port -fv install gnucash +guile16 +without_docs +without_ofx +without_hbci +without_quotes

6. It will fail couple of times, so repeat the above command until you will get an error complaining that guile16 is not installed on your system. At this point type in Terminal:

sudo ln -s /opt/local/include/libguile16 /opt/local/include/libguile
sudo ln -s /opt/local/include/libguile16.h /opt/local/include/libguile.h
sudo ln -s /opt/local/bin/guile16 /opt/local/bin/guile
sudo ln -s /opt/local/bin/guile16-config /opt/local/bin/guile-config
sudo ln -s /opt/local/bin/guile16-snarf /opt/local/bin/guile-snarf
sudo ln -s /opt/local/bin/guile16-tools /opt/local/bin/guile-tools
sudo ln -s /opt/local/lib/libguile16.a /opt/local/lib/libguile.a
sudo ln -s /opt/local/lib/libguile16.dylib /opt/local/lib/libguile.dylib
sudo ln -s /opt/local/lib/libguile16.la /opt/local/lib/libguile.la

7. Re-issue port install command:

sudo port -fv install gnucash +guile16 +without_docs +without_ofx +without_hbci +without_quotes

8. This should be it. Type

gnucash

in Terminal, and GnuCash application should start.