[Zope-Perl] more pyperl problems

Jeff Anderson captvanhalen@yahoo.com
Sun, 16 Dec 2001 09:49:48 -0800 (PST)


Hi, this is really, really tough! I am a total
newbie to installing Perl by hand, and trying to
guess which directories to put 'what' where is 
frustrating.

I intalled Perl5.7.2 with threads, and i
installed
Python::Object with:
perl5.7.2 Makefile.PL
PREFIX=/usr/local/lib/perl5/5.7.2

The module was placed in the directory
/usr/local/lib/perl5/5.7.2/lib/site_perl/5.7.2/i686-linux-thread-multi

when i tried the following:
perl5.7.2 -MPython::Object -le 'print "hey"'

i was chastised with:
Can't locate Python/Object.pm in @INC ...

so, i moved everything in the chosen directory:
mv *
/usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi

and ran the above one-liner again and got:
Can't load
'/usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so'
for module Python::Object:
/usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so:
undefined symbol: PyExc_ArithmeticError at
/usr/local/lib/perl5/5.7.2/i686-linux-thread-multi/DynaLoader.pm
line 208.

I am beginning to lose my fascination with
Zope-Perl, please help. 

Oh yeah - when i try to install pyperl:
python setup.py install    

i now get the following gcc error:
running build_ext
building 'perl2' extension
gcc -g -O2 -D_FILE_OFFSET_BITS=64
-DHAVE_LARGEFILE_SUPPORT -fPIC
-I/usr/lib/perl5/5.6.0/i386-linux/CORE
-I/usr/include/python2.1 -c perlmodule.c -o
build/temp.linux-i686-2.1/perlmodule.o
-fno-strict-aliasing -DDL_HACK -DMULTI_PERL
In file included from perlmodule.c:13:
lang_lock.h:67: parse error before
`last_py_tstate'
lang_lock.h:67: warning: data definition has no
type or storage class
error: command 'gcc' failed with exit status 1

sorry to just past a bunch-o error messages,
but i have no clue as to where to even begin
to understand this process.

Thanks to Mr. Aas for the answer to my previous
question.

jeffa

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com