Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: gixmo on November 30, 2011, 08:16:14 AM

Title: Missing Dependency: php-api when updain to 8.7
Post by: gixmo on November 30, 2011, 08:16:14 AM
U get the following when executing yum update

Quote
Finished Dependency Resolution
php-mcrypt-5.1.6-15.el5.centos.1.i386 from installed has depsolving problems
  --> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (installed)
Error: Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

none of the
Quote
ackage-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
seems to work.

Any help please?
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: lloydh on November 30, 2011, 08:54:12 AM
I just got the same errors but I didn't try anything after that.
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: nowhinjing on November 30, 2011, 09:59:34 AM
me too !

 :?
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: Stefano on November 30, 2011, 10:15:43 AM
php-mcrypt is available from extras repo
Code: [Select]
[root@srvsrv1 ~]# yum --enablerepo=* list php-mcrypt
....
Excluding Packages from CentOS - os
Finished
Excluding Packages from Dag - EL5
Finished
Excluding Packages from CentOS - updates
Finished
Available Packages
php-mcrypt.i386                                                          5.1.6-15.el5.centos.1                                                          extras

please, post the output of
Code: [Select]
yum --enablerepo=* list php-api
/sbin/e-smith/audittools/newrpms
rpm -q --whatrequires php-api

Thank you
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: nowhinjing on November 30, 2011, 10:52:47 AM
As requested :

Code: [Select]
[root@louches ~]# yum --enablerepo=* list php-api
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.mserverz.de
 * centosplus: ftp.plusline.de
 * extras: mirror.mserverz.de
 * sme7contribs: www.mirrorservice.org
 * smeaddons: www.mirrorservice.org
 * smecontribs: www.mirrorservice.org
 * smedev: www.mirrorservice.org
 * smeextras: www.mirrorservice.org
 * smeos: www.mirrorservice.org
 * smetest: www.mirrorservice.org
 * smeupdates: www.mirrorservice.org
 * smeupdates-testing: www.mirrorservice.org
 * updates: ftp.plusline.de
Excluding Packages from CentOS - os
Finished
Excluding Packages from Dag - EL5
Finished
Excluding Packages from CentOS - updates
Finished
Error: No matching Packages to list
[root@louches ~]# /sbin/e-smith/audittools/newrpms
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.mserverz.de
 * smeaddons: www.mirrorservice.org
 * smeos: www.mirrorservice.org
 * smeupdates: www.mirrorservice.org
 * updates: ftp.plusline.de
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Extra Packages
GeoIP.i386                          1.4.7-0.1.20090931cvs.el5          installed
SysVinit.i386                       2.86-15.el5                        installed
a52dec.i386                         0.7.4-8.el5.rf                     installed
aalib.i386                          1.4.0-5.el5.rf                     installed
aspell.i386                         12:0.60.3-7.1.el5.sme              installed
atrpms.noarch                       73.1-1                             installed
authconfig.i386                     5.3.21-6.el5                       installed
bash.i386                           3.2-24.el5                         installed
bridge-utils.i386                   1.1-2                              installed
centos-release.i386                 10:5-6.el5.centos.1                installed
centos-release-notes.i386           5.6-0                              installed
clamav.i386                         0.97-1.el5.rf                      installed
clamav-db.i386                      0.97-1.el5.rf                      installed
clamd.i386                          0.97-1.el5.rf                      installed
coreutils.i386                      5.97-23.el5_6.4                    installed
cppunit.i386                        1.12.0-3.el5.rf                    installed
cpuspeed.i386                       1:1.2.1-9.el5                      installed
cryptsetup-luks.i386                1.0.3-5.el5                        installed
device-mapper.i386                  1.02.55-2.el5                      installed
device-mapper-event.i386            1.02.55-2.el5                      installed
device-mapper-multipath.i386        0.4.7-42.el5_6.3                   installed
dhclient.i386                       12:3.0.5-23.el5_6.4                installed
dhcp.i386                           12:3.0.5-23.el5_6.4                installed
dirac.i386                          1.0.2-1.el5.rf                     installed
dmidecode.i386                      1:2.10-3.el5                       installed
dmraid.i386                         1.0.0.rc13-63.el5                  installed
dmraid-events.i386                  1.0.0.rc13-63.el5                  installed
e-smith-apache.noarch               2.2.0-6.el5.sme                    installed
e-smith-backup.noarch               2.2.0-46.el5.sme                   installed
e-smith-base.i386                   5.2.0-28.el5.sme                   installed
e-smith-email.noarch                5.2.0-14.el5.sme                   installed
e-smith-formmagick.noarch           2.2.0-4.el5.sme                    installed
e-smith-ibays.noarch                2.2.0-2.el5.sme                    installed
e-smith-ldap.noarch                 5.2.0-24.el5.sme                   installed
e-smith-ntp.noarch                  2.2.0-4.el5.sme                    installed
e-smith-oidentd.noarch              2.2.0-1.el5.sme                    installed
e-smith-php.noarch                  2.2.0-3.el5.sme                    installed
e-smith-proxy.noarch                5.2.0-4.el5.sme                    installed
e-smith-quota.noarch                2.2.0-8.el5.sme                    installed
e-smith-samba.noarch                2.2.0-18.el5.sme                   installed
e-smith-turba.noarch                3.2.0-15.el5.sme                   installed
e2fsprogs.i386                      1.39-23.el5_5.1                    installed
e2fsprogs-libs.i386                 1.39-23.el5_5.1                    installed
enca.i386                           1.10-1.el5.rf                      installed
faac.i386                           1.26-1.el5.rf                      installed
ffmpeg.i386                         0.6.1-1.el5.rf                     installed
ffmpeg-libpostproc.i386             0.6.1-1.el5.rf                     installed
glibc.i686                          2.5-58.el5_6.4                     installed
glibc-common.i386                   2.5-58.el5_6.4                     installed
gsm.i386                            1.0.13-1.el5.rf                    installed
gzip.i386                           1.3.5-11.el5.centos.1              installed
horde.noarch                        3.3.11-1.el5.sme                   installed
htop.i386                           0.8.3-1.el5.rf                     installed
httpd.i386                          2.2.3-45.el5.centos.1              installed
hwdata.noarch                       0.213.22-1.el5                     installed
initscripts.i386                    8.45.30-2.el5.sme.2                installed
iscsi-initiator-utils.i386          6.2.0.872-6.el5                    installed
kernel.i686                         2.6.18-238.9.1.el5                 installed
kernel.i686                         2.6.18-238.12.1.el5                installed
kernel.i686                         2.6.18-238.19.1.el5                installed
kpartx.i386                         0.4.7-42.el5_6.3                   installed
krb5-libs.i386                      1.6.1-55.el5_6.2                   installed
lame.i386                           3.98.4-1.el5.rf                    installed
libass.i386                         0.9.11-1.el5.rf                    installed
libcaca.i386                        0.99-0.1.beta17.el5.rf             installed
libdca.i386                         0.0.5-1.el5.rf                     installed
libgcc.i386                         4.1.2-50.el5                       installed
libmad.i386                         0.15.1b-4.el5.rf                   installed
libmcrypt.i386                      2.5.8-4.el5.centos                 installed
libmpcdec.i386                      1.2.6-1.el5.rf                     installed
libstdc++.i386                      4.1.2-50.el5                       installed
libsysfs.i386                       2.0.0-6                            installed
libtdb.i386                         1.2.1-5.el5                        installed
libvolume_id.i386                   095-14.24.el5                      installed
libxml2.i386                        2.6.26-2.1.2.8.el5_5.1             installed
libxml2-python.i386                 2.6.26-2.1.2.8.el5_5.1             installed
lirc.i386                           0.6.6-4.el5.rf                     installed
live555.i386                        0-0.27.2010.04.09.el5.rf           installed
logrotate.i386                      3.7.4-9.el5_5.2                    installed
lvm2.i386                           2.02.74-5.el5_6.1                  installed
lzo.i386                            2.04-1.el5.rf                      installed
m2crypto.i386                       0.16-7.el5                         installed
man.i386                            1.6d-1.1                           installed
mkinitrd.i386                       5.1.19.6-68.el5_6.1                installed
mod_ssl.i386                        1:2.2.3-45.el5.centos.1            installed
mpg123.i386                         1.13.2-1.el5.rf                    installed
mplayer.i386                        1.0-0.46.svn20100703.el5.rf        installed
mplayer-common.i386                 1.0-0.46.svn20100703.el5.rf        installed
mplayer-fonts.noarch                1.1-3.0.rf                         installed
mtr.i386                            2:0.80-1.el5.rf                    installed
nash.i386                           5.1.19.6-68.el5_6.1                installed
net-snmp.i386                       1:5.3.2.2-9.el5_5.1                installed
net-snmp-libs.i386                  1:5.3.2.2-9.el5_5.1                installed
net-snmp-utils.i386                 1:5.3.2.2-9.el5_5.1                installed
ntp.i386                            4.2.2p1-9.el5.centos.2.1           installed
nut.i386                            2.2.0-7.el5                        installed
nut-client.i386                     2.2.0-7.el5                        installed
openal.i386                         0.0.8-2.el5.rf                     installed
opencore-amr.i386                   0.1.2-1.el5.rf                     installed
openssl.i686                        0.9.8e-12.el5_5.7                  installed
perl-Authen-SASL.noarch             2.13-1.el5.rf                      installed
perl-Compress-Raw-Zlib.i386         2.024-1.el5.rf                     installed
perl-Compress-Zlib.noarch           2.015-1.el5.rf                     installed
perl-Convert-ASN1.noarch            0.22-1.el5.rf                      installed
perl-Crypt-Cracklib.i386            1.4-1.el5.rf                       installed
perl-Crypt-OpenSSL-RSA.i386         0.25-1.el5.rf                      installed
perl-DBI.i386                       1.611-1.el5.rf                     installed
perl-Digest-SHA.i386                5.48-1.el5.rf                      installed
perl-HTML-Parser.i386               3.64-1.el5.rf                      installed
perl-HTML-Tagset.noarch             3.20-1.el5.rf                      installed
perl-IO-Socket-INET6.noarch         2.57-1.el5.rf                      installed
perl-IO-Socket-SSL.noarch           1.31-2.el5.rf                      installed
perl-IO-Zlib.noarch                 1.10-1.el5.rf                      installed
perl-Mail-DKIM.noarch               0.37-1.el5.rf                      installed
perl-Mail-SPF.noarch                2.006-1.el5.rf                     installed
perl-Net-DNS.i386                   0.66-1.el5.rf                      installed
perl-Net-Ident.noarch               1.20-1.2.el5.rf                    installed
perl-Net-Server.noarch              0.97-1.el5.rf                      installed
perl-NetAddr-IP.i386                4.027-1.el5.rf                     installed
perl-Socket6.i386                   0.23-1.el5.rf                      installed
php.i386                            5.2.10-1.el5.sme                   installed
php-cli.i386                        5.2.10-1.el5.sme                   installed
php-common.i386                     5.2.10-1.el5.sme                   installed
php-devel.i386                      5.2.10-1.el5.sme                   installed
php-gd.i386                         5.2.10-1.el5.sme                   installed
php-imap.i386                       5.2.10-1.el5.sme                   installed
php-ldap.i386                       5.2.10-1.el5.sme                   installed
php-mbstring.i386                   5.2.10-1.el5.sme                   installed
php-mcrypt.i386                     5.1.6-15.el5.centos.1              installed
php-mysql.i386                      5.2.10-1.el5.sme                   installed
php-pdo.i386                        5.2.10-1.el5.sme                   installed
php-pear-Log.noarch                 1.9.13-1.el5.centos                installed
php-pecl-Fileinfo.i386              1.0.4-3.el5.sme                    installed
php-xml.i386                        5.2.10-1.el5.sme                   installed
phpmyadmin.noarch                   2.11.11.3-1.el4.rf                 installed
procps.i386                         3.2.7-16.el5                       installed
proftpd.i386                        1.3.3c-1.el5                       installed
python-simplejson.i386              2.0.9-2.el5                        installed
pyzor.noarch                        0.4.0-11.el5                       installed
qpsmtpd.noarch                      0.84-0.1.el5.sme                   installed
rssh.i386                           2.3.3-1.el5.rf                     installed
rsync.i386                          3.0.7-1.el5.rf                     installed
samba3x.i386                        3.5.4-0.70.el5_6.1                 installed
samba3x-client.i386                 3.5.4-0.70.el5_6.1                 installed
samba3x-common.i386                 3.5.4-0.70.el5_6.1                 installed
samba3x-winbind.i386                3.5.4-0.70.el5_6.1                 installed
sme7-ddclient.noarch                3.7.3-7                            installed
smeserver-diskusage.noarch          0.0.1-13.el4.sme                   installed
smeserver-locale-bg.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-da.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-de.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-el.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-es.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-et.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-fr.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-he.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-hu.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-id.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-it.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-ja.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-nb.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-nl.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-pl.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-pt.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-pt_BR.noarch       2.2.0-36.el5.sme                   installed
smeserver-locale-ro.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-ru.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-sl.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-sv.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-th.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-tr.noarch          2.2.0-36.el5.sme                   installed
smeserver-locale-zh_CN.noarch       2.2.0-36.el5.sme                   installed
smeserver-locale-zh_TW.noarch       2.2.0-36.el5.sme                   installed
smeserver-mod_dav.noarch            0.1-18.el4.sme                     installed
smeserver-phpmyadmin.noarch         2.11.1.2-3.el4.sme                 installed
smeserver-release.noarch            26:8.0-0.beta6.el5.sme             installed
smeserver-support.noarch            2.2.0-18.el5.sme                   installed
squeezeboxserver.noarch             7.6.1-1                            installed
svgalib.i386                        1.9.25-1.el5.rf                    installed
sysfsutils.i386                     2.0.0-6                            installed
tdb-tools.i386                      1.2.1-5.el5                        installed
traceroute.i386                     3:2.0.1-5.el5                      installed
udev.i386                           095-14.24.el5                      installed
x264.i386                           0.0.0-0.4.20101111.el5.rf          installed
xvidcore.i386                       1.2.2-1.el5.rf                     installed
yum.noarch                          3.2.22-33.el5.centos               installed
yum-fastestmirror.noarch            1.1.16-14.el5.centos.1             installed
yum-protect-packages.noarch         1.1.16-14.el5.centos.1             installed
zlib.i386                           1.2.3-3                            installed
[root@louches ~]# rpm -q --whatrequires php-api
php-pecl-Fileinfo-1.0.4-3.el5.sme
php-mcrypt-5.1.6-15.el5.centos.1
[root@louches ~]#

NWJ
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: Stefano on November 30, 2011, 10:58:33 AM
nowhinjing, can you please tell us something more about your server history?

thank you
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: nowhinjing on November 30, 2011, 11:15:32 AM
Hi, Stephano,

Many thanks for your swift reply !

The server was originally loaded with 8b6 and has the ddclient, phpmyadmin, and squeezebox server contribs running on it.

It has 3 iBays
- my test web site
- a ModX development area
- a Samba store area

What else can I tell you ?

Richard
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: Stefano on November 30, 2011, 11:34:46 AM
well..

the output of /sbin/e-smith/audittools/newrpms from your server is very different from mine:
Code: [Select]
[root@srvsrv1 ~]# /sbin/e-smith/audittools/newrpms
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: it.centos.contactlab.it
 * smeaddons: aubrac-medical.fr
 * smeos: aubrac-medical.fr
 * smeupdates: aubrac-medical.fr
 * updates: mirror.netcologne.de
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Extra Packages
VMwareTools.i386                        7302-123630                    installed
kernel.i686                             2.6.18-194.11.1.el5            installed
perl-Filesys-DiskFree.noarch            0.06-1.2.el5.rf                installed
smeserver-affa.noarch                   1.0.0-3.el4.sme                installed

and the server was initially a SME 8.b6 updated to 8.b7

please, post the output of
Code: [Select]
/sbin/e-smith/audittools/repositories

did you make any "yum upgrade" with external repo enabled?
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: nowhinjing on November 30, 2011, 12:51:16 PM
The only yum upgrade that I run is for the squeezebox server.

as requested :
Code: [Select]
[root@louches ~]# /sbin/e-smith/audittools/repositories
addons: disabled
base: enabled
centosplus: disabled
contrib: disabled
dag: disabled
extras: disabled
sme7contribs: disabled
smeaddons: enabled
smecontribs: disabled
smedev: disabled
smeextras: enabled
smeos: enabled
smetest: disabled
smeupdates: enabled
smeupdates-testing: enabled
squeezecenter-release: disabled
updates: enabled
[root@louches ~]#
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: slords on November 30, 2011, 07:40:02 PM
The issue here is that we updated php to 5.3.  You need to remove php-mcrypt and install php53-mcrypt (which can be found in the contribs repo).
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: TerryF on December 01, 2011, 06:06:33 AM
The issue here is that we updated php to 5.3.  You need to remove php-mcrypt and install php53-mcrypt (which can be found in the contribs repo).

and this worked a treat for me, no fuss. Thanks
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: bloodshoteye on December 01, 2011, 08:44:30 AM
@slords
Quote
... You need to remove php-mcrypt and install php53-mcrypt ...
This also wants to remove (for dependancies), phpmyadmin and smeserver-phpmyadmin on one of my systems.
If I allow this and re-install those two after, will I cause any harm to existing MySQL databases do you think?

Cheers,
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: TerryF on December 01, 2011, 08:50:09 AM
@slordsThis also wants to remove (for dependancies), phpmyadmin and smeserver-phpmyadmin on one of my systems.
If I allow this and re-install those two after, will I cause any harm to existing MySQL databases do you think?Cheers,

No it won't..reinstall later..
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: Stefano on December 01, 2011, 09:58:46 AM
@slordsThis also wants to remove (for dependancies), phpmyadmin and smeserver-phpmyadmin on one of my systems.
If I allow this and re-install those two after, will I cause any harm to existing MySQL databases do you think?

Cheers,


in this case use
Code: [Select]
rpm -e --nodeps packagename
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: bloodshoteye on December 01, 2011, 11:15:51 AM
Quote
in this case use
Code: [Select]
rpm -e --nodeps packagename
Advice arrived just too late for me :-) but I re-installed with no issues, as Trex said.

Cheers,
Title: Re: Missing Dependency: php-api when updain to 8.7
Post by: nowhinjing on December 01, 2011, 01:34:09 PM
Running

Code: [Select]
rpm -e --nodeps php-mcrypt

yum --enablerepo=smecontribs install php53-mcrypt

signal-event post-upgrade; signal-event reboot

Followed by the normal updates via the GUI front end worked for me.  :D

Thanks to all those who helped me out here !

NWJ