Ad Widget

Collapse

Dependency problems due install zabbix5 on redhat7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bab
    Senior Member
    • Aug 2020
    • 176

    #1

    Dependency problems due install zabbix5 on redhat7

    I am installing zabbix5 on redhat 7. when I am running this command

    yum install zabbix-web-mysql-scl zabbix-apache-conf-scl

    it get error such as follow

    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-apache-conf-scl.noarch 0:5.0.12-1.el7 will be installed
    --> Processing Dependency: zabbix-web-deps-scl = 5.0.12-1.el7 for package: zabbix-apache-conf-scl-5.0.12-1.el7.noarch
    ---> Package zabbix-web-mysql-scl.noarch 0:5.0.12-1.el7 will be installed
    --> Processing Dependency: zabbix-web = 5.0.12-1.el7 for package: zabbix-web-mysql-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-mysqlnd for package: zabbix-web-mysql-scl-5.0.12-1.el7.noarch
    --> Running transaction check
    ---> Package zabbix-web.noarch 0:5.0.12-1.el7 will be installed
    ---> Package zabbix-web-deps-scl.noarch 0:5.0.12-1.el7 will be installed
    --> Processing Dependency: rh-php72-php-mbstring for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-xml for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72 for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-ldap for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-fpm for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-bcmath for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    --> Processing Dependency: rh-php72-php-gd for package: zabbix-web-deps-scl-5.0.12-1.el7.noarch
    ---> Package zabbix-web-mysql-scl.noarch 0:5.0.12-1.el7 will be installed
    --> Processing Dependency: rh-php72-php-mysqlnd for package: zabbix-web-mysql-scl-5.0.12-1.el7.noarch
    --> Finished Dependency Resolution
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-gd
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-mbstring
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-bcmath
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-xml
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-ldap
    Error: Package: zabbix-web-deps-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-fpm
    Error: Package: zabbix-web-mysql-scl-5.0.12-1.el7.noarch (zabbix)
    Requires: rh-php72-php-mysqlnd
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    although when typing php72 --version show follow

    PHP 7.2.34 (cli) (built: Apr 28 2021 07:46:55) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies


    but when type php --version show previous version

    PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/remctl.ini on line 1 in Unknown on line 0
    PHP 5.4.16 (cli) (built: Oct 29 2019 09:56:22)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


    How can solve that issue ?
  • Tim457
    Junior Member
    • Jun 2021
    • 1

    #2
    Finally after many hours of search and no one feedback, I was able to fix my issue. I am sharing here so it's might helps other in the future who are facing the same issue.

    First, you need to install yum replace :

    HTML Code:
    yum install yum-plugin-replace
    After replace, php-common with your confict php version. In my case, it is php70u-common. Therefore, I ran the following commands :

    HTML Code:
    yum replace php-common --replace-with php70u-common
    Or you if it is for only php, you can do also:

    HTML Code:
    yum replace php --replace-with php70u
    After that, you can install the package you want. In my case, it was Zabbix.



    Target Card Balance Now



    Last edited by Tim457; 28-06-2021, 06:25.

    Comment

    • anhdv
      Junior Member
      • Jun 2021
      • 1

      #3
      I'm a newbie,
      I am having trouble installing Zabbix server on Centos 8.0 as shown below. please just help me fix this error.
      Click image for larger version

Name:	Capture.PNG
Views:	498
Size:	24.7 KB
ID:	427183
      Thank you so much!

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Hi bab,
        Did you enable the SCL repository as described on the download page?

        ex.
        Code:
        # yum-config-manager --enable rhel-server-rhscl-7-rpms
        Download page:
        Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          Hi anhdv,
          Did you install the zabbix-release package for RHEL 7 on CentOS 8? Since the repository for RHEL 7 and the repository for RHEL 8 (CentOS 8) are different, please install the zabbix-release package for RHEL 8 on CentOS 8.
          As a procedure, first remove the already installed zabbix-release package. Then install zabbix-release package for RHEL 8 and clear the repository cache.

          Code:
          # dnf remove zabbix-release
          # dnf install https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
          # dnf clean all
          Download page:
          Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!

          Comment

          • bab
            Senior Member
            • Aug 2020
            • 176

            #6
            Originally posted by Atsushi
            Hi bab,
            Did you enable the SCL repository as described on the download page?

            ex.
            Code:
            # yum-config-manager --enable rhel-server-rhscl-7-rpms
            Download page:
            Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


            Would you please give me a clear document step by step to install zabbix5 on redhat7 because documents that reside on zabbix repo are not clear and complete

            Comment

            Working...