perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Re: Redefining common tags? (partial solution)
Date Tue, 24 Jan 2006 19:39:49 GMT
Gerald Richter wrote:

>>Missing directory 
>>/usr/src/cpan/Embperl-2.1.0/xsbuilder/tables/Embperl at 
>>/usr/lib/perl5/vendor_perl/5.8.6/ExtUtils/XSBuilder/ParseSourc
>>e.pm line 494.
>>    
>>
>
>A sorry, I forgot that this directory is not part of the tar.gz, please run
> perl xsbuilder/source_scan.pl
>before
>  
>

Hmm, this is starting to be - ehm - fun... Make test is OK, but it 
refuses to work:

[Tue Jan 24 20:40:10 2006] [error] Embperl::Thread object version 2.0.1 
does not match bootstrap parameter 2.1.0 at 
/usr/lib/perl5/site_perl/5.8.6/i386-linux/Embperl.pm line 
107.\nCompilation failed in require at 
/etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nBEGIN 
failed--compilation aborted at 
/etc/apache2/modules.d/apache2-mod_perl-startup.pl line 24.\nCompilation 
failed in require at (eval 2) line 1.\n

I can see the old ebuild 2.0.1 version (in .../vendor_perl/ ) is being 
used together with the 2.1.0 new version (in .../site_perl/). Given 
site_perl is in @INC before vendor_perl I'm confused why this is 
happening. Anyway, after uninstalling everything I have hopefully 
working patched Embperl, now I have:

--------------------------
Syntax:
...
    $self -> AddTagBlock ('h2', ['color'], undef, undef, { perlcode => q{
            { $epreq -> component -> curr_esc_mode = 0;
                _ep_rp(%$x%, "<img src=\"/img/h2.png?color="
                . $epreq -> Escape( %&'color%, 2 )
                . "&text="
                . $epreq -> Escape( 
XML::Embperl::DOM::Node::iChildsText(%$n%), 2 )
                . "\">");
            }}
        }) ;
....
-----------------------
hotel_en.html
[$ syntax + ParkhotelPruhonice $]

<h2 color="#F00">111</h2><br>
<h2>222</h2><br>
<h2>333</h2><br>
<ul></ul>
<h2>444</h2><br>
<h2>555</h2><br>
<hr>
<img src="/img/h2.png?color=&text=999"><br>
...
------------------------

[Tue Jan 24 21:26:08 2006] [error] [23740]ERR:  24:  Error in Perl code: 
Can't modify non-lvalue subroutine call at 
/home/www/parkhotel-pruhonice/new/hotel_en.html line 4.




Mime
View raw message