Ad Widget

Collapse

Not able to install on RHEL 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohanrao
    Junior Member
    • Apr 2018
    • 2

    #1

    Not able to install on RHEL 7

    Hi ,

    I am trying to follow installation steps from



    I am getting the below error when installing zabbix-web-mysql


    Error: Package: zabbix-web-3.4.8-1.el7.noarch (zabbix)
    Requires: php-bcmath
    Error: Package: zabbix-web-3.4.8-1.el7.noarch (zabbix)
    Requires: php-mbstring
    ************************************************** ********************
    yum can be configured to try to resolve such errors by temporarily enabling
    disabled repos and searching for missing dependencies.
    To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
    ************************************************** ********************

    Error: Package: zabbix-web-3.4.8-1.el7.noarch (zabbix)
    Requires: php-bcmath
    Error: Package: zabbix-web-3.4.8-1.el7.noarch (zabbix)
    Requires: php-mbstring

    manual,installation,install_from_packages,rhel_centos
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    You must enable optional packages.

    ex.
    Code:
    # yum-config-manager --enable rhel-7-server-optional-rpms

    Comment

    • mohanrao
      Junior Member
      • Apr 2018
      • 2

      #3
      Thanks but now leading to the below errors

      Error: Package: php-bcmath-5.4.16-43.el7_4.x86_64 (rhel-7-server-optional-rpms)
      Requires: php-common(x86-64) = 5.4.16-43.el7_4
      Available: php-common-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-21.el7
      Available: php-common-5.4.16-23.el7_0.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0
      Available: php-common-5.4.16-23.el7_0.1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0.1
      Available: php-common-5.4.16-23.el7_0.3.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0.3
      Available: php-common-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-36.el7_1
      Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (rhel-7-server-rpms)
      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-7-server-rpms)
      php-common(x86-64) = 5.4.16-36.3.el7_2
      Available: php-common-5.4.16-42.el7.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-42.el7
      Available: php-common-5.4.16-43.el7_4.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-43.el7_4
      Installing: php-common-5.4.16-43.el7_4.1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-43.el7_4.1
      Error: Package: php-mbstring-5.4.16-43.el7_4.x86_64 (rhel-7-server-optional-rpms )
      Requires: php-common(x86-64) = 5.4.16-43.el7_4
      Available: php-common-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-21.el7
      Available: php-common-5.4.16-23.el7_0.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0
      Available: php-common-5.4.16-23.el7_0.1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0.1
      Available: php-common-5.4.16-23.el7_0.3.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-23.el7_0.3
      Available: php-common-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-36.el7_1
      Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (rhel-7-server-rpms)
      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-7-server-rpms)
      php-common(x86-64) = 5.4.16-36.3.el7_2
      Available: php-common-5.4.16-42.el7.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-42.el7
      Available: php-common-5.4.16-43.el7_4.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-43.el7_4
      Installing: php-common-5.4.16-43.el7_4.1.x86_64 (rhel-7-server-rpms)
      php-common(x86-64) = 5.4.16-43.el7_4.1
      ************************************************** ********************

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4


        has both bcmath and php-common 5.4.16-43 . So I guess something's wrong with your system. Try to clean yum cache and install again

        # yum clean all
        # yum install zabbix-web-mysql

        Comment

        • tanmoy3108
          Junior Member
          • Apr 2018
          • 9

          #5
          I am also facing the same issue can any one help on this i tried the bove steos suggested

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            Please show me the specific problem.
            Have you enabled the Optional repository properly?
            Did you clear the repository cache?

            If it does not work, I think that something has failed or the procedure is missing.
        • tanmoy3108
          Junior Member
          • Apr 2018
          • 9

          #6
          still facing the issue can some one help

          Comment

          • tanmoy3108
            Junior Member
            • Apr 2018
            • 9

            #7
            Loaded plugins: product-id, search-disabled-repos, subscription-manager
            This system is not registered with an entitlement server. You can use subscription-manager to register.
            Repository epel is listed more than once in the configuration
            Resolving Dependencies
            --> Running transaction check
            ---> Package zabbix-web-mysql.noarch 0:3.4.8-1.el7 will be installed
            --> Processing Dependency: zabbix-web = 3.4.8-1.el7 for package: zabbix-web-mysql-3.4.8-1.el7.noarch
            --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.8-1.el7.noarch
            Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.5-1.el7.remi.x86_64 which is already installed
            --> Running transaction check
            ---> Package zabbix-web.noarch 0:3.4.8-1.el7 will be installed
            --> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.4.8-1.el7.noarch
            --> Processing Dependency: php-bcmath for package: zabbix-web-3.4.8-1.el7.noarch
            --> Processing Dependency: php-ldap for package: zabbix-web-3.4.8-1.el7.noarch
            ---> Package zabbix-web-mysql.noarch 0:3.4.8-1.el7 will be installed
            --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.8-1.el7.noarch
            Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.5-1.el7.remi.x86_64 which is already installed
            --> Running transaction check
            ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
            --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
            ---> Package php-bcmath.x86_64 0:7.2.5-1.el7.remi will be installed
            ---> Package php-ldap.x86_64 0:7.2.5-1.el7.remi will be installed
            ---> Package zabbix-web-mysql.noarch 0:3.4.8-1.el7 will be installed
            --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.8-1.el7.noarch
            Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.5-1.el7.remi.x86_64 which is already installed
            --> Running transaction check
            ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
            ---> Package zabbix-web-mysql.noarch 0:3.4.8-1.el7 will be installed
            --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.8-1.el7.noarch
            Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.5-1.el7.remi.x86_64 which is already installed
            --> Finished Dependency Resolution
            Error: Package: zabbix-web-mysql-3.4.8-1.el7.noarch (zabbix)
            Requires: php-mysql
            Available: php-mysql-5.4.16-21.el7.x86_64 (updates)
            php-mysql = 5.4.16-21.el7
            Available: php-mysql-5.4.16-23.el7_0.x86_64 (updates)
            php-mysql = 5.4.16-23.el7_0
            Available: php-mysql-5.4.16-23.el7_0.1.x86_64 (updates)
            php-mysql = 5.4.16-23.el7_0.1
            Available: php-mysql-5.4.16-23.el7_0.3.x86_64 (base)
            php-mysql = 5.4.16-23.el7_0.3
            Available: php-mysql-5.4.16-36.el7_1.x86_64 (updates)
            php-mysql = 5.4.16-36.el7_1
            Available: php-mysql-5.4.16-36.1.el7_2.1.x86_64 (updates)
            php-mysql = 5.4.16-36.1.el7_2.1
            Available: php-mysql-5.4.16-36.3.el7_2.x86_64 (updates)
            php-mysql = 5.4.16-36.3.el7_2
            Available: php-mysql-5.4.16-42.el7.x86_64 (updates)
            php-mysql = 5.4.16-42.el7
            Available: php-mysql-5.4.16-43.el7_4.x86_64 (updates)
            php-mysql = 5.4.16-43.el7_4
            Available: php-mysql-5.4.16-43.el7_4.1.x86_64 (updates)
            php-mysql = 5.4.16-43.el7_4.1
            Available: php-mysql-5.4.16-45.el7.x86_64 (updates)
            php-mysql = 5.4.16-45.el7
            Available: php-pecl-mysql-1.0.0-0.17.20160812git230a828.el7.remi.7.2.x86_64 (remi-php72)
            php-mysql = 1:1.0.0

            Comment


            • Atsushi
              Atsushi commented
              Editing a comment
              Have you mixed RHEL standard PHP 5.4 environment with remi's PHP 7.2 environment?
              Please unify either.
          • tanmoy3108
            Junior Member
            • Apr 2018
            • 9

            #8
            i removed php 5.4 and installed 7.2 every thing went fine but zabbix-web-mysql is showing it needs 5.4

            Comment

            • tanmoy3108
              Junior Member
              • Apr 2018
              • 9

              #9
              can u suggest how to remove remi's PHP 7.2

              Comment

              • nameuser
                Member
                • Apr 2018
                • 39

                #10
                The same issue (as I think)

                yum install:
                Code:
                <..>
                ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
                ---> Package zabbix-web-mysql.noarch 0:4.0.1-1.el7 will be installed
                --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.1-1.el7.noarch
                Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.1.24-1.el7.remi.x86_64 which is already installed
                --> Finished Dependency Resolution
                Error: Package: zabbix-web-mysql-4.0.1-1.el7.noarch (zabbix)
                           Requires: php-mysql
                           Available: php-mysql-5.4.16-45.el7.x86_64 (base)
                               php-mysql = 5.4.16-45.el7
                           Available: php-mysqlnd-5.4.16-45.el7.x86_64 (base)
                               php-mysql = 5.4.16-45.el7
                           Available: php-pecl-mysql-1.0.0-0.14.20160428git45881bd.el7.remi.7.1.x86_64 (remi-php71)
                               php-mysql = 1:1.0.0
                           Available: php-pecl-mysql-1.0.0-0.15.20160812git230a828.el7.remi.7.1.x86_64 (remi-php71)
                               php-mysql = 1:1.0.0
                           Available: php56u-mysqlnd-5.6.37-1.ius.centos7.x86_64 (ius)
                               php-mysql = 5.6.37-1.ius.centos7
                           Available: php56u-mysqlnd-5.6.38-1.ius.centos7.x86_64 (ius)
                               php-mysql = 5.6.38-1.ius.centos7
                           Installed: php-mysqlnd-7.1.24-1.el7.remi.x86_64 (@remi-php71)
                               Not found
                           Available: php-mysqlnd-7.1.23-1.el7.remi.x86_64 (remi-php71)
                               Not found
                 You could try using --skip-broken to work around the problem
                 You could try running: rpm -Va --nofiles --nodigest

                deps:


                Code:
                root@localhost ~ # yum deplist zabbix-web-mysql --verbose
                Loading "fastestmirror" plugin
                Config time: 0.010
                Yum version: 3.4.3
                rpmdb time: 0.000
                Setting up Package Sacks
                Loading mirror speeds from cached hostfile
                 * base: mirror.logol.ru
                 * elrepo: ftp.nluug.nl
                 * epel: epel.hysing.is
                 * extras: mirror.logol.ru
                 * ius: ftp.acc.umu.se
                 * remi-php71: mirror.netweaver.uk
                 * remi-safe: mirror.netweaver.uk
                 * updates: mirror.reconn.ru
                pkgsack time: 3.121
                Searching pkgSack for dep: php-mysql
                Searching pkgSack for dep: zabbix-web
                package: zabbix-web-mysql.noarch 4.0.1-1.el7
                  dependency: php-mysql
                   provider: php56u-mysqlnd.x86_64 5.6.38-1.ius.centos7
                   provider: php56u-mysqlnd.x86_64 5.6.37-1.ius.centos7
                   provider: php-pecl-mysql.x86_64 1.0.0-0.15.20160812git230a828.el7.remi.7.1
                   provider: php-pecl-mysql.x86_64 1.0.0-0.14.20160428git45881bd.el7.remi.7.1
                   provider: php-mysqlnd.x86_64 5.4.16-45.el7
                   provider: php-mysql.x86_64 5.4.16-45.el7
                  dependency: zabbix-web = 4.0.1-1.el7
                   provider: zabbix-web.noarch 4.0.1-1.el7
                php

                Code:
                root@localhost ~ # php -v
                PHP 7.1.24 (cli) (built: Nov  7 2018 18:45:17) ( NTS )
                Copyright (c) 1997-2018 The PHP Group
                Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
                How can I solve this deps problem?

                Comment

                • nameuser
                  Member
                  • Apr 2018
                  • 39

                  #11
                  UPD
                  Nothing about mixing two environments:


                  Code:
                  root@localhost ~ # yum list installed php*
                  Loaded plugins: fastestmirror
                  Loading mirror speeds from cached hostfile
                   * base: mirror.corbina.net
                   * elrepo: elrepo.mirrors.arminco.com
                   * epel: mirror.linux-ia64.org
                   * extras: mirror.corbina.net
                   * ius: mirrors.ircam.fr
                   * remi-php71: mirror.reconn.ru
                   * remi-safe: mirror.reconn.ru
                   * updates: mirror.corbina.net
                  Installed Packages
                  php.x86_64                                                                                 7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-bcmath.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-cli.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-common.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-fedora-autoloader.noarch                                                               1.0.0-1.el7                                                                                           @epel
                  php-fpm.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-gd.x86_64                                                                              7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-json.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-ldap.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-mbstring.x86_64                                                                        7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-mysqlnd.x86_64                                                                         7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-odbc.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-pdo.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-pear.noarch                                                                            1:1.10.6-1.el7.remi                                                                                   @remi-php71
                  php-pecl-memcache.x86_64                                                                   3.0.9-0.9.20170802.e702b5f.el7.remi.7.1                                                               @remi-php71
                  php-process.x86_64                                                                         7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-snmp.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-soap.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-xml.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
                  php-xmlrpc.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
                  php71.x86_64                                                                               1.0-1.el7.remi                                                                                        @remi-safe
                  php71-php-cli.x86_64                                                                       7.1.24-1.el7.remi                                                                                     @remi-safe
                  php71-php-common.x86_64                                                                    7.1.24-1.el7.remi                                                                                     @remi-safe
                  php71-php-json.x86_64                                                                      7.1.24-1.el7.remi                                                                                     @remi-safe
                  php71-runtime.x86_64                                                                       1.0-1.el7.remi                                                                                        @remi-safe

                  Comment

                  • nameuser
                    Member
                    • Apr 2018
                    • 39

                    #12
                    I dont know why but removing IUS repository from repolist is solution.

                    So I did this:
                    1. yum remove php*
                    2. yum clean all
                    3. rm /etc/yum.repos.d/ius*
                    4. yum install zabbix-web-mysql

                    Hope you will solve this issue the same way.
                    Anyway, I don't know why rmoveng 3rd party repo (ius) fix that for me

                    Comment

                    Working...