This section describes how to obtain the Gnumeric source code, configure it for Python and build it. This section will eventually be removed as Python becomes supported by default.
I'm going to define some variables here so that you can insert the appropriate command or item for your system when they occur. I'll prefix them all with '$'.
You need to get Python and Gnumeric, and the Python plugin for Gnumeric. You can get the binaries, the packaged source, or the developing edge sources from Git.
I've only tested this on sid (unstable). The version you get from stable (woody) may not act quite the same.
$root apt-get install gnumeric gnumeric-python python
If you have Debian, and don't need the bleeding edge, this is by far the easiest way to get and build the source.
Change to a directory where you want to hang the source directory.
$root apt-get build-dep gnumeric
apt-get source gnumeric
cd gnumeric-$version
debian/rules build
To make the .deb packages: $root ./debian/rules binary
To install those .deb packages:
cd .. to change to that directory.
$root dpkg -i gnum*deb (presuming you don't have other .deb packages beginning with "gnum" lying around here.
You may or may not want to remove those .deb files now: $root rm gnum*deb)
Remember that this is the developing edge. Things may not work. Generally don't do this unless you are subscribed to the mail list and possibly also on the IRC channel.
You will need a few things for this to work at all:
gnome-common
libgsf (see below)
pygtk2 (On Debian, make sure to get python-gtk2 and python-gtk2-dev)
gnumeric (see below, obviously)
And although the following will build in the main build space, it's probably better to build in a temporary space. But I can't be bothered to learn how to fiddle the build pathways.
Change to a directory where you want to hang the source directory for Gnumeric and a few other GNOME things.
Getting and building libgsf:
git clone git://git.gnome.org/libgsf
cd libgsf
Red Hat: ./autogen.sh
Debian: ./autogen.sh --prefix=/usr --with-gconf-schema-file-dir=/etc/gconf/schemas
make
$root make install
If you find that this didn't work, try make clean and then repeat from the autogen step.
Getting and building libgal No longer necessary! (13 June 2003)
Getting and building goffice:
git clone git://git.gnome.org/goffice
cd goffice
Red Hat: ./autogen.sh
Debian: ./autogen.sh --prefix=/usr --with-gconf-schema-file-dir=/etc/gconf/schemas
make
$root make install
If you find that this didn't work, try make clean and then repeat from the autogen step.
Getting and building gnumeric:
git clone git://git.gnome.org/gnumeric gnumeric-head
cd gnumeric-head
Red Hat: ./autogen.sh and wait while it compiles
Debian: ./autogen.sh --prefix=/usr --with-gconf-schema-file-dir=/etc/gconf/schemas
make
Optional: $root make install
If you find that this didn't work, try make clean and then repeat from the autogen step. For example, sometimes I've had it not create the python-loader.
OK, you should now have gnumeric! Test it! If you installed the Debianized version via apt-get, or did "make install", it should be installed to /usr/bin (or /usr/local/bin on Red Hat?) and you can just type gnumeric. Otherwise you will find it in gnumeric-head/src/ and you will have to run it from there.