unable to install mod_perl on CentOS 4.4 X86_64

Support for the other architectures (X86_64, s390(x) and PowerPC)
Post Reply
MatsK
Posts: 125
Joined: 2005/02/13 19:39:28
Location: Sala, Sweden
Contact:

unable to install mod_perl on CentOS 4.4 X86_64

Post by MatsK » 2006/12/08 08:21:39

On a freshly installed CentOS 4.4 and then have I executed "yum update".

And then I would like to "yum install mod_perl", but that fails on dependencies.

[font=Courier]Error: Missing Dependency: libaprutil-0.so.0 is needed by package mod_perl[/font]
[font=Courier]Error: Missing Dependency: libperl.so is needed by package mod_perl[/font]

When trying to locate the .so :
[font=Courier][root@test ~]# locate libaprutil-0.so.0[/font]
[font=Courier]/usr/lib64/libaprutil-0.so.0[/font]
[font=Courier]/usr/lib64/libaprutil-0.so.0.9.4[/font]

[font=Courier][root@test ~]# locate libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE/libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.3/x86_64-linux-thread-multi/CORE/libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.4/x86_64-linux-thread-multi/CORE/libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.2/x86_64-linux-thread-multi/CORE/libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE/libperl.so[/font]
[font=Courier]/usr/lib64/perl5/5.8.1/x86_64-linux-thread-multi/CORE/libperl.so[/font]

Can someone give me a pointer to what I have done wrong or is there a bug in the yum repository dependency ?


Kind regards
Mats

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by Lenard » 2006/12/09 11:33:57

Try the old fashioned way;

rpm -Uvh http://isoredirect.centos.org/centos/4.4/os/x86_64/CentOS/RPMS/mod_perl-1.99_16-4.centos4.x86_64.rpm

And take the suggestions if need be and apply to the yum command; yum install mod_perl foo foo2

MatsK
Posts: 125
Joined: 2005/02/13 19:39:28
Location: Sala, Sweden
Contact:

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by MatsK » 2006/12/11 09:24:27

I think I found the "error":

I was following the [url=http://wiki.centos.org/RT_3.4.x_On_CentOS_4.x]RT 3.4.x On CentOS 4.x[/url] instruction and in that one I added a repository.

In that repository was there a i386 version of the mod_perl and it seems that was causing the "Missing dependencies".

So I removed the repository and mod_perl installed flawless.

So my question is: If there is two repositories that has versions of the same package but for different architectures is why isn't the correct arch choosen ?


/Mats

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by Lenard » 2006/12/11 13:13:09

Mixing of repos sometimes can lead to problems, as you now know.

Tell me how does the application yum choose which is the correct version??? Computes do not think or reason despite what others may tell you, all they are in essence are glorified bank of on/off switches that work really fast, GIGO.

But I am glad you were able to think and reason out the problem.

MatsK
Posts: 125
Joined: 2005/02/13 19:39:28
Location: Sala, Sweden
Contact:

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by MatsK » 2006/12/11 14:31:10

When adding the repo from the RT instruction i get the below output from the command [font=Courier]yum info mod_perl[/font].

The other repo is [font=Courier]http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/rt-3.4.x.repo[/font].

[font=Courier]Setting up repositories[/font]
[font=Courier]rt-3.4.x 100% |=========================| 951 B 00:00[/font]
[font=Courier]Reading repository metadata in from local files[/font]
[font=Courier]Installed Packages[/font]
[font=Courier]Name : mod_perl[/font]
[font=Courier]Arch : x86_64[/font]
[font=Courier]Version: 1.99_16[/font]
[font=Courier]Release: 4.centos4[/font]
[font=Courier]Size : 3.9 M[/font]
[font=Courier]Repo : installed[/font]
[font=Courier]Summary: An embedded Perl interpreter for the Apache Web server.[/font]


[font=Courier]Available Packages[/font]
[font=Courier]Name : mod_perl[/font]
[font=Courier]Arch : i386[/font]
[font=Courier]Version: 2.0.1[/font]
[font=Courier]Release: 1.rhel4[/font]
[font=Courier]Size : 5.1 M[/font]
[font=Courier]Repo : rt-3.4.x[/font]
[font=Courier]Summary: An embedded Perl interpreter for the Apache Web server[/font]


I now see that the i386 version is newer than the x86_64 version and is in the process to recompile the i386 to x86_64 from the srpm's but those are also failing so...

And I understand that this is a bit tricky for yum to decide what should be the preference order, "Arch" and then "Version" or the reverse ?!?!


Maybee a more knowledged person should give this a thought ? but I suspect that the answer is that other repos than the official is not supported 8-)


Kind regards
Mats

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by Lenard » 2006/12/11 19:49:49

[quote]
MatsK wrote:
When adding the repo from the RT instruction i get the below output from the command [font=Courier]yum info mod_perl[/font].

The other repo is [font=Courier]http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/rt-3.4.x.repo[/font].

[font=Courier]Setting up repositories[/font]
[font=Courier]rt-3.4.x 100% |=========================| 951 B 00:00[/font]
[font=Courier]Reading repository metadata in from local files[/font]
[font=Courier]Installed Packages[/font]
[font=Courier]Name : mod_perl[/font]
[font=Courier]Arch : x86_64[/font]
[font=Courier]Version: 1.99_16[/font]
[font=Courier]Release: 4.centos4[/font]
[font=Courier]Size : 3.9 M[/font]
[font=Courier]Repo : installed[/font]
[font=Courier]Summary: An embedded Perl interpreter for the Apache Web server.[/font]


[font=Courier]Available Packages[/font]
[font=Courier]Name : mod_perl[/font]
[font=Courier]Arch : i386[/font]
[font=Courier]Version: 2.0.1[/font]
[font=Courier]Release: 1.rhel4[/font]
[font=Courier]Size : 5.1 M[/font]
[font=Courier]Repo : rt-3.4.x[/font]
[font=Courier]Summary: An embedded Perl interpreter for the Apache Web server[/font]


I now see that the i386 version is newer than the x86_64 version and is in the process to recompile the i386 to x86_64 from the srpm's but those are also failing so...
[/quote]

This is a problem, you cannot update the 32-bit without updating the 64-bit to the same version. It seems somebody somewhere forgot something.

[quote]
And I understand that this is a bit tricky for yum to decide what should be the preference order, "Arch" and then "Version" or the reverse ?!?!
[/quote]

The preference order is set by the OS itself, if your running a 64-bit kernel then the 64-bit version of a package is like the grand master, if both are available and/or instilled then 64-bit version is the preferred choice. You can install in some cases an older version of the 32-bit package but never a newer version of the package for compatibility reasons.

[quote]
Maybe a more knowledged person should give this a thought ? but I suspect that the answer is that other repos than the official is not supported 8-)
[/quote]

Some third party repo's work very hard at maintaining compatibility then others, but you are right third party repos are not officially supported.

As a suggestion, try using the mod_perl-2.0.1 rpm packages from FC4 updates, for example;

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/x86_64/mod_perl-2.0.1-1.fc4.x86_64.rpm
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/mod_perl-2.0.1-1.fc4.i386.rpm

paulomatos
Posts: 1
Joined: 2006/01/12 06:20:12

Re: unable to install mod_perl on CentOS 4.4 X86_64

Post by paulomatos » 2006/12/20 02:26:36

[quote]
Lenard wrote:
(...)
Some third party repo's work very hard at maintaining compatibility then others, but you are right third party repos are not officially supported.

As a suggestion, try using the mod_perl-2.0.1 rpm packages from FC4 updates, for example;

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/x86_64/mod_perl-2.0.1-1.fc4.x86_64.rpm
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/mod_perl-2.0.1-1.fc4.i386.rpm
[/quote]

Hi Leonard and MatsK!

That bundle of packages were built only for i386 archs, can understand either why yum gets confused.
You can always get the src.rpm package at:
http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/SRPMS/mod_perl-2.0.1-1.rhel4.src.rpm
and rebuild it under your arch.

Just notice that mod_perl-1.99.x applications are incompatible with mod_perl-2.0.x!

Regards,

Paulo Matos

Post Reply

Return to “CentOS 4 - X86_64,s390(x) and PowerPC Support”