RedHat

From GnuCash
Revision as of 21:25, 11 August 2010 by Gjanssens (talk | contribs) (Add Fedora 13 section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

EPEL for EL4/EL5

The easy way to install GnuCash on EL4/EL5 is to use Extra Packages for Enterprise Linux (EPEL), which is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs such as CentOS or Scientific Linux. See this for more information about how to install packages from EPEL.

For example, install gnucash on EL5, just do the following commands:

su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
su -c 'yum -y install gnucash'

FC5/RHEL4/CentOS4.3

See http://people.redhat.com/notting/gnucash/ or http://lists.gnucash.org/pipermail/gnucash-user/2006-July/017004.html.

RHEL5/SL5

Getting GnuCash 2.2.0 (update: 2.2.5 as well) to install on RHEL 5 and recompiled editions (specifically tested: Fermi SL 5.0 with updates as of 7/25/2007, but it should work on all RHEL5 recompiles). I haven't yet created the RPM like I used to with RHEL3 and GC1.8.9, maybe one day I'll get to that and document it here...

Optional: boot from sl50 livecd

The installations below are based on the default RPM selections of the SL5.0 LiveCD. I tested this off the LiveCD directly as well as Installing to Hard Drive from the LiveCD. If you installed your OS from the install CD's/DVD, you might already have a lot of these RPM's installed; no harm done.

  • yum groupinstall 'Development Tools'
  • yum install pcre gettext perl-XML-Parser
  • yum install libgnomeui-devel guile-devel libgnomeprint22-devel libgsf-devel pcre-devel gettext-devel gtkhtml3-devel
  • download slib-3a3 (NOT slib-3a4)
  • install expanded slib/ subdirectory and move it into /usr/share
  • ln -s /usr/share/slib /usr/share/guile/slib
  • Create SLIB catalog indirectly by invoking it first time; you need to do this as user with write permissions into /usr/share/slib
    • guile -c "(use-modules (ice-9 slib)) (require 'printf)"

Aasmodeus 21:41, 25 July 2007 (EDT)


RHEL5.1/CentOS5.1

Similar to the above for RHEL5; this is for Gnucash 2.2.4:

Starting with the 'personal workstation' selection for CentOS 5.1, I needed the following extra steps:

1. Install glib-2.0 sources. Glib-2.0 will already be installed, and the easiest thing to do is to use the same version of the source code as you have already. In my case this is 2.12.3. (./configure will give you the website to go to; if you get the wrong one, ./configure will also tell you that the source files and compiled package are different versions!)

2. It also seems that PKG_CONFIG_PATH is not set correctly by default for root shells: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

3. Then everything as above. Note that later versions of goffice do not work with 2.2.4 (see http://bugzilla.gnome.org/show_bug.cgi?id=527735), but use 0.4.3 from ftp://ftp.gnome.org/pub/GNOME/sources/goffice/0.4/ and things will work. (For 0.6.x versions of goffice, you need a later version e.g. 3.14 of libgtkhtml, but I haven't tried that)

4. once ./configure runs all the way through, you need to edit src/pixmaps/Makefile and comment out the line:

#gncscalableicon_DATA = scalable/gnucash-icon.svg

5. make, make install

--Daveh01 14:18, 12 April 2008 (EDT)

Fedora 13

Fedora ships GnuCash in its main repository. The default version can be installed by simply calling

yum install gnucash

If you wish to build your own version of GnuCash from source, the above command is a good start as well as it installs many of GnuCash' dependencies.

What follows will document how I built GnuCash from svn (r19419, between release 2.3.14 and 2.3.15).

Install the build environment and required dependencies:

yum groupinstall "Development Tools"
yum install gtk2-devel guile-devel GConf2-devel libgnomeui-devel goffice-devel swig

If you want to use sqlite, postgresql or mysql to store your GnuCash data, you should also install libdbi

yum install libdbi-devel

and at least one db backend: libdbi-dbd-mysql, libdbi-dbd-pgsql and/or libdbi-dbd-sqlite, for example:

yum install libdbi-dbd-sqlite

Next you should choose a html engine for the reporting. 2.3.x supports either the older gtkhtml3 and webkit. Depending on your choice you should install gtkthml3-devel or webkitgtk-devel. As webkit will be the default engine in the future, I'll be using that one:

yum install webkitgtk-devel

From here you can follow the generic build instructions on the Building page to build GnuCash on Fedora.

Gjanssens 21:25, 11 August 2010 (UTC)