mjrlx86
(mjrl)
March 12, 2021, 12:34pm
1
Hello,
We are thinking about migrating to checkmk v2, but first I wanted to do a POC test and at the very start I encountered dependency issue for php. Once I run to install check-mk-raw-2.0.0-el7-38.x86_64.rpm , i get php mb-string dependency issue like this:
→ Finished Dependency Resolution
Error: Package: php-mbstring-5.4.16-46.el7.x86_64 (rhel-x86_64-server-optional-7)
Requires: php-common(x86-64) = 5.4.16-46.el7
Available: php-common-5.4.16-21.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-21.el7
Available: php-common-5.4.16-23.el7_0.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0
Available: php-common-5.4.16-23.el7_0.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0.1
Available: php-common-5.4.16-23.el7_0.3.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0.3
Available: php-common-5.4.16-36.el7_1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.el7_1
Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.1.el7_2.1
Available: php-common-5.4.16-36.3.el7_2.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.3.el7_2
Available: php-common-5.4.16-42.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-43.el7_4.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-43.el7_4
Available: php-common-5.4.16-43.el7_4.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-43.el7_4.1
Available: php-common-5.4.16-45.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-45.el7
Available: php-common-5.4.16-46.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-46.el7
Available: php-common-5.4.16-46.1.el7_7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-46.1.el7_7
Installing: php-common-5.4.16-48.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-48.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Now I am wondering why would that be an issue? Is that a common or trivial fix for that?
I have repos enabled:
rhel-x86_64-server-7
rhel-x86_64-server-extras-7
rhel-x86_64-server-optional-7
I can also install yum install php-mbstring-5.4.16-46.el7 php-common-5.4.16-46.el7 without issues.
Then I run again yum install check-mk-raw-2.0.0-el7-38.x86_64.rpm and in the end it tries to remove and reinstall and still fails like that:
→ Finished Dependency Resolution
Error: Package: php-mbstring-5.4.16-46.el7.x86_64 (@rhel-x86_64-server-optional-7 )
Requires: php-common(x86-64) = 5.4.16-46.el7
Removing: php-common-5.4.16-46.el7.x86_64 (@rhel-x86_64-server-7 )
php-common(x86-64) = 5.4.16-46.el7
Updated By: php-common-5.4.16-48.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-48.el7
Available: php-common-5.4.16-21.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-21.el7
Available: php-common-5.4.16-23.el7_0.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0
Available: php-common-5.4.16-23.el7_0.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0.1
Available: php-common-5.4.16-23.el7_0.3.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-23.el7_0.3
Available: php-common-5.4.16-36.el7_1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.el7_1
Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.1.el7_2.1
Available: php-common-5.4.16-36.3.el7_2.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-36.3.el7_2
Available: php-common-5.4.16-42.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-43.el7_4.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-43.el7_4
Available: php-common-5.4.16-43.el7_4.1.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-43.el7_4.1
Available: php-common-5.4.16-45.el7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-45.el7
Available: php-common-5.4.16-46.1.el7_7.x86_64 (rhel-x86_64-server-7)
php-common(x86-64) = 5.4.16-46.1.el7_7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Now why would that be removing php-common?
How can I solve this and just do some POC environment?
Also a side question: Why would a vendor package both architectures in one rpm package?
Thanks for any help.
r.sander
(Robert Sander)
March 12, 2021, 1:26pm
2
Have you followed the installation instructions for RHEL / CentOS?
mjrlx86
(mjrl)
March 12, 2021, 1:27pm
3
r.sander:
lation
Yes, to the step.
As I have said above: fails at step 4: yum install check-mk-raw-2.0.0-el7-38.x86_64.rpm
r.sander
(Robert Sander)
March 12, 2021, 1:44pm
4
I had no issue installing the package on a fresh CentOS 7.9:
[root@test04 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@test04 ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
…
[root@test04 ~]# wget https://download.checkmk.com/checkmk/2.0.0/check-mk-raw-2.0.0-el7-38.x86_64.rpm
…
[root@test04 ~]# yum install check-mk-raw-2.0.0-el7-38.x86_64.rpm
…
Installed:
check-mk-raw-2.0.0.x86_64 0:el7-38
Dependency Installed:
GeoIP.x86_64 0:1.5.0-14.el7 adobe-mappings-cmap.noarch 0:20171205-3.el7 adobe-mappings-cmap-deprecated.noarch 0:20171205-3.el7
adobe-mappings-pdf.noarch 0:20180407-1.el7 apr.x86_64 0:1.4.8-7.el7 apr-util.x86_64 0:1.5.2-6.el7
atk.x86_64 0:2.28.1-2.el7 avahi-libs.x86_64 0:0.6.31-20.el7 bind-libs.x86_64 32:9.11.4-26.P2.el7_9.4
bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.4 bind-license.noarch 32:9.11.4-26.P2.el7_9.4 bind-utils.x86_64 32:9.11.4-26.P2.el7_9.4
boost-system.x86_64 0:1.53.0-28.el7 boost-thread.x86_64 0:1.53.0-28.el7 bzip2.x86_64 0:1.0.6-13.el7
cairo.x86_64 0:1.15.12-4.el7 cups-libs.x86_64 1:1.6.3-51.el7 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 dialog.x86_64 0:1.2-5.20130523.el7 dwz.x86_64 0:0.11-3.el7
elfutils.x86_64 0:0.176-5.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7
freeradius.x86_64 0:3.0.13-15.el7 freeradius-utils.x86_64 0:3.0.13-15.el7 fribidi.x86_64 0:1.0.2-1.el7_7.1
gd.x86_64 0:2.0.35-27.el7_9 gdb.x86_64 0:7.6.1-120.el7 gdk-pixbuf2.x86_64 0:2.36.12-3.el7
geoipupdate.x86_64 0:2.5.0-1.el7 graphite2.x86_64 0:1.3.10-1.el7_3 graphviz.x86_64 0:2.30.1-22.el7
graphviz-gd.x86_64 0:2.30.1-22.el7 gtk-update-icon-cache.x86_64 0:3.22.30-6.el7 gtk2.x86_64 0:2.24.31-1.el7
harfbuzz.x86_64 0:1.7.5-2.el7 hicolor-icon-theme.noarch 0:0.12-7.el7 httpd.x86_64 0:2.4.6-97.el7.centos
httpd-tools.x86_64 0:2.4.6-97.el7.centos jasper-libs.x86_64 0:1.900.1-33.el7 jbigkit-libs.x86_64 0:2.0-11.el7
lcms2.x86_64 0:2.6-3.el7 libICE.x86_64 0:1.0.9-9.el7 libSM.x86_64 0:1.2.2-2.el7
libX11.x86_64 0:1.6.7-3.el7_9 libX11-common.noarch 0:1.6.7-3.el7_9 libXau.x86_64 0:1.0.8-2.1.el7
libXaw.x86_64 0:1.0.13-4.el7 libXcomposite.x86_64 0:0.4.4-4.1.el7 libXcursor.x86_64 0:1.1.15-1.el7
libXdamage.x86_64 0:1.1.4-4.1.el7 libXext.x86_64 0:1.3.3-3.el7 libXfixes.x86_64 0:5.0.3-1.el7
libXft.x86_64 0:2.3.2-2.el7 libXi.x86_64 0:1.7.9-1.el7 libXinerama.x86_64 0:1.1.3-2.1.el7
libXmu.x86_64 0:1.1.2-2.el7 libXpm.x86_64 0:3.5.12-1.el7 libXrandr.x86_64 0:1.5.1-2.el7
libXrender.x86_64 0:0.9.10-1.el7 libXt.x86_64 0:1.1.5-3.el7 libXxf86misc.x86_64 0:1.0.3-7.1.el7
libXxf86vm.x86_64 0:1.1.4-1.el7 libdbi.x86_64 0:0.8.4-6.el7 libfontenc.x86_64 0:1.1.3-3.el7
libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7
libgs.x86_64 0:9.25-5.el7 libgsf.x86_64 0:1.14.26-7.el7 libjpeg-turbo.x86_64 0:1.2.90-8.el7
libpaper.x86_64 0:1.1.24-9.el7 libpcap.x86_64 14:1.5.3-12.el7 librsvg2.x86_64 0:2.40.20-1.el7
libtalloc.x86_64 0:2.1.16-1.el7 libthai.x86_64 0:0.1.14-9.el7 libtiff.x86_64 0:4.0.3-35.el7
libtirpc.x86_64 0:0.2.4-0.16.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 libwayland-client.x86_64 0:1.15.0-1.el7
libwayland-server.x86_64 0:1.15.0-1.el7 libxcb.x86_64 0:1.13-1.el7 libxshmfence.x86_64 0:1.2-1.el7
libxslt.x86_64 0:1.1.28-6.el7 libzip.x86_64 0:0.10.1-8.el7 log4cxx.x86_64 0:0.10.0-16.el7
mailcap.noarch 0:2.1.41-2.el7 mesa-libEGL.x86_64 0:18.3.4-12.el7_9 mesa-libGL.x86_64 0:18.3.4-12.el7_9
mesa-libgbm.x86_64 0:18.3.4-12.el7_9 mesa-libglapi.x86_64 0:18.3.4-12.el7_9 openjpeg-libs.x86_64 0:1.5.1-18.el7
openjpeg2.x86_64 0:2.3.1-3.el7_7 pango.x86_64 0:1.42.4-4.el7_7 patch.x86_64 0:2.7.1-12.el7_7
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-IO-Zlib.noarch 1:1.10-299.el7_9
perl-Locale-Maketext.noarch 0:1.23-3.el7 perl-Locale-Maketext-Simple.noarch 1:0.21-299.el7_9 perl-Net-Daemon.noarch 0:0.48-5.el7
perl-PlRPC.noarch 0:0.2020-14.el7 perl-Thread-Queue.noarch 0:3.02-2.el7 perl-srpm-macros.noarch 0:1-8.el7
php.x86_64 0:5.4.16-48.el7 php-cli.x86_64 0:5.4.16-48.el7 php-common.x86_64 0:5.4.16-48.el7
php-gd.x86_64 0:5.4.16-48.el7 php-mbstring.x86_64 0:5.4.16-48.el7 php-pdo.x86_64 0:5.4.16-48.el7
php-xml.x86_64 0:5.4.16-48.el7 pixman.x86_64 0:0.34.0-1.el7 poppler.x86_64 0:0.26.5-43.el7.1
poppler-data.noarch 0:0.4.6-3.el7 poppler-utils.x86_64 0:0.26.5-43.el7.1 postgresql-libs.x86_64 0:9.2.24-4.el7_8
python-srpm-macros.noarch 0:3-34.el7 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos rpcbind.x86_64 0:0.2.0-49.el7
rpm-build.x86_64 0:4.11.3-45.el7 rsync.x86_64 0:3.1.2-10.el7 t1lib.x86_64 0:5.1.2-14.el7
time.x86_64 0:1.7-45.el7 tncfhh.x86_64 0:0.8.3-16.el7 tncfhh-libs.x86_64 0:0.8.3-16.el7
tncfhh-utils.x86_64 0:0.8.3-16.el7 traceroute.x86_64 3:2.0.22-2.el7 unzip.x86_64 0:6.0-21.el7
urw-base35-bookman-fonts.noarch 0:20170801-10.el7 urw-base35-c059-fonts.noarch 0:20170801-10.el7 urw-base35-d050000l-fonts.noarch 0:20170801-10.el7
urw-base35-fonts.noarch 0:20170801-10.el7 urw-base35-fonts-common.noarch 0:20170801-10.el7 urw-base35-gothic-fonts.noarch 0:20170801-10.el7
urw-base35-nimbus-mono-ps-fonts.noarch 0:20170801-10.el7 urw-base35-nimbus-roman-fonts.noarch 0:20170801-10.el7 urw-base35-nimbus-sans-fonts.noarch 0:20170801-10.el7
urw-base35-p052-fonts.noarch 0:20170801-10.el7 urw-base35-standard-symbols-ps-fonts.noarch 0:20170801-10.el7 urw-base35-z003-fonts.noarch 0:20170801-10.el7
uuid.x86_64 0:1.6.2-26.el7 xerces-c.x86_64 0:3.1.1-10.el7_7 xinetd.x86_64 2:2.3.15-14.el7
xorg-x11-font-utils.x86_64 1:7.5-21.el7 xorg-x11-server-utils.x86_64 0:7.7-20.el7 zip.x86_64 0:3.0-11.el7
Complete!
[root@test04 ~]# omd versions
2.0.0.cre (default)
mjrlx86
(mjrl)
March 12, 2021, 1:56pm
5
r.sander:
:9.11.4-2
Thank You, r. sander, this confirms to me, that issues might be related to my repositories, as we are using satellite, there might be something I am not seeing yet. I will investigate further and will get back to this thread if I have a solution.
By the way: I had same php-mbstring dependency issue when trying to install v1.6 also. Couldn’t do it either. That also confirms that issues are probably on my Satellite + RHEL 7 setup.
1 Like
mjrlx86
(mjrl)
March 12, 2021, 3:35pm
6
It does indeed work with CentOS 7.9, but it does not with RHEL 7.9. It has dependency issues, i am wondering if anyone could confirm that this indeed works for RHEL 7.9. php-mbstring is the package that is providing issues and errors out.
Can you have a look at this post.
Well it appears to be as simple as
dnf module reset php
dnf module install php:7.4
I will do some testing to see if cmk is happy…
It is Oracle Linux but i think it is the same problem with the PHP packages and also version confusion.
Today i don’t want to install a PHP 5.4
system
(system)
Closed
March 12, 2022, 5:05pm
8
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.