[Zope-Perl] Problem installing pyperl on SuSE Linux 7.2
Fischer Ulrich
ulrich.fischer@sfwte.ch
Fri, 03 Aug 2001 08:54:37 +0200
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------D377C8E28D00161AC810A233
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Chris Yunker wrote:
>
> I'm having trouble building pyperl-1.0.1 on my system.
>
> After installation, I ran the 'python test.py' test
> and got the following results:
>
> apply.py ............ failed
> basic.py ............ ok
> defined.py .......... ok
> eval.py ............. ok
> hashop.py ........... ok
> import.py ...........Traceback (most recent call
> last):
> File "/usr/local/pyperl-1.0.1/test.py", line 58, in
> ?
> if not test_ok(f):
> File "/usr/local/pyperl-1.0.1/test.py", line 43, in
> test_ok
> if ok and (expect_next - 1) != expect_max:
> UnboundLocalError: Local variable 'expect_next'
> referenced before assignment
>
> I'm system config is as follows:
>
> Linux SuSE 7.2 installation
> Perl 5.6.0
> Python 2.0
> gcc version 2.95.3
>
> Any help would be appreciated.
>
> Chris Yunker
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> _______________________________________________
> Zope-perl maillist - Zope-perl@zope.org
> http://lists.zope.org/mailman/listinfo/zope-perl
Hi Chris
we had the same problem. The solution is:
You need:
Perl 5.6.1
Python 2.1
PyPerl 1.0.1
There is a problem with updating Perl and Python in SuSE Linux, say, it
is little bit tricki, because Perl is strongly integrated into the
system. It is much more easyer to make a parallel installation of Perl
5.6.1 and Python 2.1 for Zope:
mkdir /usr/local2
mkdir /usr/local2/SOURCES
1. PERL 5.6.1
# cp /sw/bin/SOURCES/perl-5.6.1.tar.gz .
# gunzip perl-5.6.1.tar.gz
# tar xf perl-5.6.1.tar
# sh Configure -de -Dusethreads -Dprefix=/usr/local2/perl-5.6.1
-Uinstallusrbinperl
# make
# make test
>> All tests successful.
>> u=0.32 s=0.13 cu=34.79 cs=4.44 scripts=251 tests=12537
# make install
# cp /usr/local2/perl-5.6.1/bin/perl5.6.1 /usr/bin/perl5.6.1
# make distclean
2. PYTHON 2.1
# cp /sw/bin/SOURCES/Python-2.1.tgz .
gunzip Python-2.1.tgz
tar xf Python-2.1.tar
cd Python-2.1
./configure --prefix=/usr/local2/Python-2.1
make
make test
>> 121 tests OK.
1 test failed: test_nis
15 tests skipped: test_al test_bsddb test_cd test_cl test_dbm test_dl
test_gdbm test_gl test_imgfile test_largefile test_linuxaudiodev
test_sunaudiodev test_sundry test_winreg test_winsound
make: *** [test] Error 1
make install
# cp /usr/local2/Python-2.1/bin/python2.1 /usr/bin/python2.1
# make distclean
3. PyPerl 1.0.1
cp /sw/bin/SOURCES/pyperl-1.0.1.tar.gz .
gunzip pyperl-1.0.1.tar.gz
tar xf pyperl-1.0.1.tar
cd pyperl-1.0.1/Python-Object/
perl5.6.1 Makefile.PL
FIX Makefile:
INC = -I"/usr/local2/Python-2.1/include/python2.1"
make
make install
cd /usr/local2/SOURCES/pyperl-1.0.1
FIX setup.py:
#!/usr/bin/env python2.1
perl = 'perl5.6.1'
python2.1 setup.py install
Fix test.py:
#!/usr/bin/env python2.1
./test.py
>> All tests passed.
4. Zope 2.3.3
now you have to reinstall Zope with the new Python!
cd /usr/local2
cp /sw/bin/SOURCES/Zope-2.3.3-src.tgz .
gunzip Zope-2.3.3-src.tgz
tar xf Zope-2.3.3-src.tar
mv Zope-2.3.3-src Zope-2.3.3
python2.1 w_pcgi.py
>>
make clean
rm -f *.o *~
chmod 0711 /usr/local2/Zope-2.3.3/var
------------------------------------------------------------------------------
setting dir permissions
------------------------------------------------------------------------------
creating default database
chmod 0600 /usr/local2/Zope-2.3.3/var/Data.fs
------------------------------------------------------------------------------
Creating start script, start
chmod 0711 /usr/local2/Zope-2.3.3/start
------------------------------------------------------------------------------
Creating stop script, stop
chmod 0711 /usr/local2/Zope-2.3.3/stop
------------------------------------------------------------------------------
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'gugus1234'.
You can change the name and password through the web
interface or using the 'zpasswd.py' script.
chmod 0600 /usr/local2/Zope-2.3.3/inituser
------------------------------------------------------------------------------
Done!
This works realy good.
Ulrich
--------------D377C8E28D00161AC810A233
Content-Type: text/x-vcard; charset=us-ascii;
name="ulrich.fischer.vcf"
Content-Description: Karte für Fischer Ulrich
Content-Disposition: attachment;
filename="ulrich.fischer.vcf"
Content-Transfer-Encoding: 7bit
begin:vcard
n:Fischer;Ulrich
tel;fax:+41 41/268 38 97
tel;work:+41 41/268 38 79
x-mozilla-html:TRUE
org:RUAG Aerospace;Center Aerodynamics/TAM
adr:;;Postfach 301;Emmen;;6032;
version:2.1
email;internet:ulrich.fischer@sfwte.ch
title:Dipl.Natw.ETH
x-mozilla-cpt:;-29024
fn:Ulrich Fischer
end:vcard
--------------D377C8E28D00161AC810A233--