[rt-users] perl upgrade

Ruslan U. Zakirov cubic at acronis.ru
Wed May 26 11:51:46 EDT 2004


Peter Jamriško wrote:
> I think so:
> 
> [root at fserver root]# perl5.8.4 -V
[snip]

>  @INC:
>    /usr/local/lib/perl5/5.8.4/i386-linux-thread-multi
>    /usr/local/lib/perl5/5.8.4
>    /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
>    /usr/lib/perl5/site_perl/5.8.4
>    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>    /usr/lib/perl5/site_perl/5.8.0
>    /usr/lib/perl5/site_perl
>    /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
>    /usr/lib/perl5/vendor_perl/5.8.4
>    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
>    /usr/lib/perl5/vendor_perl/5.8.0
>    /usr/lib/perl5/vendor_perl

Yes. You've mixed them. It's shouldn't be problem in theory, but it's 
problem in real life.

1) You can rebuild perl:
sh Configure '-des -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 
-Dprefix=/usr/local -Dvendorprefix=/usr -Dsiteprefix=/usr -Dman3ext=3pm 
-Dcf_by=Mandrakesoft -Dmyhostname=localhost -Dperladmin=root at localhost 
-Dd_dosuid -Ud_csh -Duseshrplib -Dusethreads -Dinc_version_list=none'

I've added '-Dinc_version_list=none'. Original list I got from your 
setup. You can get it too with `perl5.8.4 -V:config_args`

then you should install all deps. rt-test-dependecies makes it easy.

2)
Under i386-linux-thread-multi dirs there is all perl's binary parts. 
Scan it for module names and rebuild that modules.

		Best regards. Ruslan.
> 
> 
> I just upgraded perl and then changed symlink /usr/bin/perl to point to 
> /usr/local/bin/perl5.8.4 instead of /usr/bin/perl5.8.0. That's all i 
> changed. Is this correct? Or shall i create some symlinks to ".so" files 
> stored now under /usr/local/lib/perl5/5.8.4/... instead of  
> /usr/lib/perl5/5.8.0?
> So, how can i determine which module is and which is not binary module 
> (which one to recompile)?
> 
> Thanks.
> 
> 
> Ruslan U. Zakirov wrote:
> 
>> Dave Cecchino wrote:
>>
>>> recompile mason.
>>
>>
>> HTML::Mason - pure perl module.
>>
>> Peter, did you include old perl INC paths into new perl build?
>>
>> If so then IMHO your problem happens because of some binary 
>> incompatibility between perl versions.
>> So you can
>> 1) recompile 5.8.4 and don't include old perl module paths.
>> 2) module-by-modlue rebuild binary modules which RT uses(DBI, DBD...)
>>
>>
>>             Best regards. Ruslan.
>>




More information about the rt-users mailing list