# gnucash
# =======
# The first version of gnucash in this howto is the 'gnucash-gnome2-dev'
# branch of gnucash from CVS. This is the only version that might work with
# Gnome 2.x If you use Gnome 1.x, try version 1.8.9 at the bottom. I no
# longer have access to anything that runs Gnome 1.x, so I'll keep updating
# that one for the latest version, but be aware that I can't actually try
# it.
cd
test -f installed/gnucash/slib3a1.tar.gz &&
mv installed/gnucash/slib3a1.tar.gz .
test ! -f slib3a1.tar.gz &&
wget http://swissnet.ai.mit.edu/ftpdir/scm/slib3a1.tar.gz
cd /usr/share/guile
test -d ./slib && rm -r ./slib
tar xzvf ~/slib3a1.tar.gz
chown -R root:root slib
echo '#!/bin/sh' > /etc/profile.d/slib
echo 'export SCHEME_LIBRARY_PATH=/usr/share/guile/slib' >> /etc/profile.d/slib
chmod +x /etc/profile.d/slib
. /etc/profile.d/slib
cd
rm -f installed/gnucash/slib*.tar.*
mv slib3a1.tar.gz installed/gnucash/
# g-wrap 1.3.4
# ============
# Prerequisites:
# gawk
# sed
# grep
# guile
# glib
# gtk+
# slib (I don't think it needs it directly, but things that g-wrap uses
# require it; and so does gnucash itself)
cd
test -f installed/g-wrap-1.3.4.tar.gz && mv installed/g-wrap-1.3.4.tar.gz .
test ! -f g-wrap-1.3.4.tar.gz &&
wget http://www.gnucash.org/pub/g-wrap/source/g-wrap-1.3.4.tar.gz
cd /usr/local/src/gnucash
find -type d -maxdepth 1 -name "g-wrap-*" -exec rm -r {} \;
tar xzvf ~/g-wrap-1.3.4.tar.gz
cd g-wrap-1.3.4
chown -R root:root .
./configure --prefix=/usr
make
rm -f /usr/lib/libgw-glib.* /usr/lib/libgw-standard.* /usr/lib/libgw-wct.* \
/usr/lib/libgwrap-wct.* /usr/lib/libgwrap-glib.*
make install
ldconfig
cd
rm -f installed/gnucash/g-wrap-*.tar.*
mv g-wrap-1.3.4.tar.gz installed/gnucash/
# guppi 0.40.3
# ============
# Slackware 8.1 had a 'guppi' package, version 0.40.3, 9.0 and 9.1 don't.
# Guppi is a "dead" (not maintained) package, and is not a part of Gnome 2.x
# If you're going to install gnucash from cvs, skip this one.
cd
test -f installed/gnucash/Guppi-0.40.3.tar.bz2 &&
mv installed/gnucash/Guppi-0.40.3.tar.bz2 .
test ! -f Guppi-0.40.3.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/Guppi/0.40/Guppi-0.40.3.tar.bz2
cd /usr/local/src/gnucash
find -type d -maxdepth 1 -name "Guppi-*" -exec rm -r {} \;
tar xjvf ~/Guppi-0.40.3.tar.bz2
cd Guppi-0.40.3
chown -R root:root .
./configure --prefix=/usr --disable-nls
make
make install
cd
rm -f installed/gnucash/Guppi-*.tar.*
mv Guppi-0.40.3.tar.bz2 installed/gnucash/
# gnucash-gnome2-dev (CVS)
# ==================
# This is far from a stable version, so even if you do successfully build it,
# back up your files _every_time_ you run it. Read the file GNOME2_STATUS in
# the source directory to see what works and what doesn't, keep an eye on the
# Changelog, and you may also want to subscribe to the gnucash-devel mailing
# list.
cd /usr/local/src/gnucash
test -d ./gnucash &&
( cd gnucash ; make distclean ; cvs update )
test ! -d ./gnucash &&
( cvs -d :pserver:cvs@cvs.gnucash.org:/home/cvs/cvsroot login
# hit enter for the password
cvs -z3 -d :pserver:cvs@cvs.gnucash.org:/home/cvs/cvsroot checkout \
-r gnucash-gnome2-dev gnucash )
cd gnucash
chown -R root:root .
./autogen.sh --prefix=/usr --sysconfdir=/etc
## If make fails with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
make
make install
ldconfig
find /usr/share/locale -type f -name "gnucash.mo" -exec rm {} \;
echo "gnucash was installed from CVS" > ~/installed/gnucash/gnucash.README
echo "source in /usr/local/src/gnucash/gnucash" >> ~/installed/gnucash/\
gnucash.README
# /usr/share/gnucash/pixmaps/gnucash-icon.png can be used as a desktop icon
# Make sure you start gnucash once as root before you run it as any non-root
# user.
# Skip down to the bottom to install the documentation
cd
test -f installed/gnucash/gnucash-1.8.11.tar.gz &&
mv installed/gnucash/gnucash-1.8.11.tar.gz .
test ! -f gnucash-1.8.11.tar.gz &&
wget http://download.sf.net/gnucash/gnucash-1.8.11.tar.gz
# Verify tarball w/ md5sum:
# Note: this md5sum comes from the author of the howto, I couldn't find one
# from the authors. If my copy is OK and this matches, then yours is too. :-)
echo "5ad11fbc5c86316632c5f9ec44dba659 gnucash-1.8.11.tar.gz" | md5sum -c
cd /usr/local/src/gnucash
find -type d -maxdepth 1 -name "gnucash-?.*" -exec rm -r {} \;
tar xzvf ~/gnucash-1.8.11.tar.gz
cd gnucash-1.8.11
chown -R root:root .
./configure --prefix=/usr --disable-nls
make
make install
ldconfig
find /usr/share/locale -type f -name "gnucash.mo" -exec rm {} \;
cd
rm -f installed/gnucash/gnucash-?.*.tar.*
mv gnucash-1.8.11.tar.gz installed/gnucash/
cd
test -f installed/gnucash-docs-1.8.5.tar.gz &&
mv installed/gnucash-docs-1.8.5.tar.gz .
test ! -f gnucash-docs-1.8.5.tar.gz &&
wget http://www.gnucash.org/pub/gnucash/sources/stable/\
gnucash-docs-1.8.5.tar.gz
cd /usr/local/src/gnucash
find -type d -maxdepth 1 -name "gnucash-docs-*" -exec rm -r {} \;
tar xzvf ~/gnucash-docs-1.8.5.tar.gz
cd gnucash-docs-1.8.5
chown -R root:root .
## If you have db4 installed and get an error like this:
## "dbadd.c:87: warning: assignment makes pointer from integer without a cast"
## after you run make below, apply this patch, then run make again. I've
## had to use this patch with version 1.8.3 through 1.8.5
# wget -nc http://englanders.cc/pub/linux/patches/gnucash-docs-1.8.3.patch &&
# patch -p0 < gnucash-docs-1.8.3.patch
./configure --prefix=/usr --sysconfdir=/etc
make
make install
cd
rm -f installed/gnucash/gnucash-docs-*.tar.gz
mv gnucash-docs-1.8.5.tar.gz installed/gnucash/
# 'make install' calls scrollkeeper-update, so no need to run it here