[Zope-Perl] help with book

Gisle Aas gisle@ActiveState.com
16 Oct 2000 16:40:42 -0700


Michel Pelletier <michel@digicool.com> writes:

> Gisle Aas wrote:
> > 
> > Michel Pelletier <michel@digicool.com> writes:
> > 
> > > Howdy,
> > >
> > > I'm putting together a sandbox to do some zope with perl testing.  I got
> > > the beta 2 of pyperl and zoperl, and they recomment I have my own
> > > private patches of perl and python.  Do I need the stable or devel
> > > perl?  Py 1.5.2 or 2.0 beta?  Thanks in advance...
> > 
> > The README.txt file of Zope-2.2.2 states that "Zope requires Python
> > 1.5.2", so that is what I recommend too.  There is one patch that you
> > need to apply to python-1.5.2 before you build it.
> > 
> > For perl you can currently select between perl-5.6.0 or perl-5.7.0.  I
> > have been running with perl-5.7.0 recently.  No extra patching
> > required for this perl.  If you use perl-5.6.0 then you need to apply
> > the 'perl-method-G_EVAL' and 'perl-vcroak-null' patch before you
> > build.  You must build perl with the -Dusethreads option.
> 
> Ok, cool, I'm getting closer but it fails here:
> 
>   - make sure your PATH is set up so that 'perl' and 'python'
>     reference the versions of the language interpreters that you
>     want to use.  Might be a good idea to use private patched
>     versions of the language interpreters for now.
> 
>   - If you are using Python-1.5.2, then you need to install
>     the Distutils package version 0.9 or better first.
> 
>   - Run these commands:
> 
>       (cd Python-Object; perl Makefile.PL; make install)
>       python setup.py install
> 
> 
> The 'make install' fails.  The thing I don't get is how it finds my
> custom patched python and perl by PATH alone, I certainly don't want to
> install them over my system binaries.  Any tips here?

This is basically how I do it:

  cd /local/tmp
  tar xzf ~/perl-5.7.0.tar.gz
  cd perl-5.7.0
  ./Configure -Dusedevel -Dprefix=/local/zope/perl -Dusethreads -ders
  make test && make install

  cd ..
  tar xzf ~/pyperl-1.0.beta2.tar.gz
  tar xzf ~/py152.tar.gz
  cd Python-1.5.2
  patch <../pyperl-1.0.beta/patches/python-152-dynload-global
  ./configure --with-threads --prefix=/local/zope/python
  make && make install

at this point we should private versions of perl and python installed
under the /local/zope area.  Then we update the PATH.

  PATH=/local/zope/perl/bin:/local/zope/python/bin:$PATH

check that the we now pick up the versions we want:

  perl -V
  python
  ^D

then build pyperl:

  cd ../pyperl-1.0.beta2
  (cd Python-Object; perl Makefile.PL; make install)
  python setup.py install
  python test.py

Regards,
Gisle