We help IT Professionals succeed at work.

Centos 6.6 setup amavisd problem

piaakit
piaakit asked
on
Hi All

           I have linux Centos 6.6, currently trying to setup a spam mail server, but i have difficulty to installing a amavisd, when i was trying to install "perl-5.8.8-42.el5.x86_64.rpm" it said i miss dependencies: "perl (:MODULE_COMPAT_5.8.8) , then i downloaded "perl-5.8.8-42.el5.x86_64.rpm" , it said conflients with file from package perl-4:5.10.1-136.el6.x86_64 ? as i am new in linux any area that i have done wrong ? any help would be Appreciated, Thanks !

1
2
3
Comment
Watch Question

Author

Commented:
i have fixed by using rpm -ivh --force to force install the package, but now i have below issue when i try to install "amavisd-new-milter-2.5.2-1.el4.rf.i386.rpm" , any idea ?


[root@spam Downloads]# rpm -ivh amavisd-new-milter-2.5.2-1.el4.rf.i386.rpm
error: Failed dependencies:
        amavisd-new = 2.5.2-1.el4.rf is needed by amavisd-new-milter-2.5.2-1.el4.rf.i386
Cloud Architect
Commented:
Is there a reason why you chose to install an older version of amavisd and not the newer one amavisd-new-2.10.1 ?
Also, the -force might have made things first, better to solve dependencies first.

And yet another question, what repositories have you installed/configured:

ls /etc/yum.repos.d/epel.repo

Open in new window

Seth SimmonsSr. Systems Administrator

Commented:
that amavisd package you forcibly installed is for RHEL 5, not 6 (look at the file name; see the "el5" ?)
i would remove that first (rpm -e amavisd*) before doing anything else

install rpm forge

rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install amavisd-new


see if that works for you

Author

Commented:
If I'm using centos I should find the version which is el6 ? Sorry I'm new in Linux , for example if I'm installed old version of amavisd-new, for amavisd-new-Milter, I still can install older version ? The reason I don't install new 2.10 coz because I don't bother to find all the missing dependencies, and how to find out which repositories I have installed ?
Seth SimmonsSr. Systems Administrator

Commented:
yeah...often times packages might look for certain library versions that are part of the same distribution it was ported for

I still can install older version ?

maybe; maybe not
there could be dependencies that can resolve on RHEL 5 but not 6 or maybe some library versions are different than expected

how to find out which repositories I have installed ?

look at the folder location spravtek listed above

Author

Commented:
[root@spam ~]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

Author

Commented:
now I have used yum install amavisd-new , and upgraded to 2.10.1-5.1 successfully, but when I install amavisd-new-milter-2.6.6-3.el5.rf.i386.rpm, I still getting Failed dependencies: any idea ?



[root@spam Downloads]# rpm -Uvh amavisd-new-2.10.1-5.1.noarch.rpm
warning: amavisd-new-2.10.1-5.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 9d18f925: NOKEY
Preparing...                ########################################### [100%]
   1:amavisd-new            ########################################### [100%]
[root@spam Downloads]# rpm -qa | grep amavisd
amavisd-new-2.10.1-5.1.noarch



[root@spam Downloads]# rpm -ivh amavisd-new-milter-2.6.6-3.el5.rf.i386.rpm
error: Failed dependencies:
        amavisd-new = 2.6.6-3.el5.rf is needed by amavisd-new-milter-2.6.6-3.el5.rf.i386
Seth SimmonsSr. Systems Administrator

Commented:
the packages need to be the same version
you are trying to install amavisd-new-milter-2.6.6-3 and it's expected amavisd-new to also be 2.6.6-3
since you have amavisd-new-2.10.1-5.1 then you need amavisd-new-milter of that same version

Author

Commented:
Thx for your reply Seth, will try it tonight

Author

Commented:
any idea how to fix the failed dependencies ?

[root@spam ~]# rpm -ivh postfix-2.4.7-1.mysql.sasl2.vda.rhel5.x86_64.rpm
error: Failed dependencies:
        libmysqlclient.so.15()(64bit) is needed by postfix-2:2.4.7-1.mysql.sasl2.vda.rhel5.x86_64
        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by postfix-2:2.4.7-1.mysql.sasl2.vda.rhel5.x86_64
Seth SimmonsSr. Systems Administrator

Commented:
that RPM is for RHEL 5, not 6

Author

Commented:
I cannot find el6 for this rpm, can anyone help ?

Author

Commented:
any one can provide me the rpm for ehel 6 ?
Zephyr ICTCloud Architect

Commented:
All available postfix rpm's can be found here or here, I'm not seeing a version 2.4.x for ehel6 though

Author

Commented:
let me check