[Zope] Building Zope 2.3.1 on Debian 2.2

Mike Renfro renfro@tntech.edu
Wed, 25 Apr 2001 08:37:26 -0500


On Wed, Apr 25, 2001 at 12:52:20AM -0400, basicprinting@earthlink.net wrote:

> Alas, I am on ppc arch not i386.
> Is Zope.deb pkg cross architecture by virtue of Python or do I still need 
> to start from source?

(If this particular thread goes any further, let's trim the main zope
list from it. I'm only using it to have a chance that some other
Debian user might find the zope@zope.org message on a search engine
more easily.)

Zope core binaries aren't cross-platform, but many of the add-on
packages (being just python, zclasses and dtml at most) are. So you'll
have to build it yourself with the following instructions.

In short, first make sure you have an unstable deb-src line in your
/etc/apt/sources.list -- something like:

  deb-src ftp://ftp.debian.org/debian unstable main contrib non-free

If you do that, and then 'apt-get update; apt-get source zope', it'll
install a Debian-patched Zope source tree in your current
directory. Currently, that should be a 2.3.1 release installed into
./zope-2.3.1

cd to that directory, and 'grep Build-Depends debian/control' --
that'll show you what other packages you'll need to build Zope. In my
case, it was debhelper v2.0 or higher, and python-dev. If you lack
either of those packages, apt-get install them.

Now you can build the package by running 'debian/rules binary' -- if
you run into any compilation errors, fix them (normally means you're
missing compilers, libraries, etc). If all goes well, you'll have a
zope-2.3.1-1_powerpc.deb (or some version) in the directory
immediately above zope-2.3.1 -- that's a package you can install with
'dpkg -i'

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu