Ad Widget

Collapse

RHEL 7 & Amazon Linux??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joshuamcdo
    Member
    • Nov 2013
    • 76

    #1

    RHEL 7 & Amazon Linux??

    What is going on? I need to install a quick Zabbix demo like I have in the past and everything is busicated all over the place.

    When trying to install on Amazon linux I get these errors:

    Error: httpd24-tools conflicts with httpd-tools-2.2.31-1.8.amzn1.x86_64
    Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
    Error: Package: iksemel-1.4-2.el7.centos.x86_64 (zabbix-non-supported)
    Requires: libgnutls.so.28()(64bit)
    Error: Package: zabbix-server-mysql-3.0.7-1.el7.x86_64 (zabbix)
    Requires: systemd
    Error: php56 conflicts with php-5.3.29-1.8.amzn1.x86_64
    Error: Package: zabbix-server-mysql-3.0.7-1.el7.x86_64 (zabbix)
    Requires: libnetsnmp.so.31()(64bit)
    Error: php56-cli conflicts with php-cli-5.3.29-1.8.amzn1.x86_64
    Error: Package: iksemel-1.4-2.el7.centos.x86_64 (zabbix-non-supported)
    Requires: libgnutls.so.28(GNUTLS_1_4)(64bit)
    Error: httpd24 conflicts with httpd-2.2.31-1.8.amzn1.x86_64
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest


    When trying to install on RHEL 7 I get missing php packages that I can't seem to find.

    "php-mbstring" & "php-bcmath"

    I have tried everything I know to do and googled and read and can't seem to find a resolution to these issue.

    Please HELP!
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Amazon Linux is not compatible with RHEL (any number).
    You are mixing two sets of packages which are not binary compatible.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • joshuamcdo
      Member
      • Nov 2013
      • 76

      #3
      So...

      I tried just using EPEL and it says there are no packages available. I don't recall having these problems in the past. So confused..


      Thanks in advance.


      Originally posted by kloczek
      Amazon Linux is not compatible with RHEL (any number).
      You are mixing two sets of packages which are not binary compatible.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        You can not install packages for RHEL 7 on Amazon Linux.
        Dependent packages and versions are different.

        You will be able to install packages for RHEL 6.
        However, some functions can not be used because they are built with dependencies of old libraries.
        If you want to use all functions of Zabbix 3.0 or later, you should rebuild it on Amazon Linux.

        My srpm of Zabbix 3.0.6 is in the following URL.

        Sorry, The explanation is Japanese only.

        Comment

        • joshuamcdo
          Member
          • Nov 2013
          • 76

          #5
          I get that I can't install RHEL 7 version on Amazon linux. I have tried installing it on both platforms and the RHEL 7 install doesn't work either. I built an instance with RHEL 7, added the RHEL 7 zabbix repo and tried to install. I get the error messages that "php-mbstring" & "php-bcmath" cannot be founda and the only way around that I find installs php7 which doesn't work.


          #cat /etc/redhat-release
          Red Hat Enterprise Linux Server release 7.3 (Maipo)

          yum -y update
          reboot
          rpm -ivh https://dl.fedoraproject.org/pub/epe...t-7.noarch.rpm
          rpm -ivh http://repo.zabbix.com/zabbix/3.0/rh...el7.noarch.rpm
          yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php


          yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php
          Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
          epel/x86_64/metalink | 16 kB 00:00:00
          epel | 4.3 kB 00:00:00
          zabbix | 951 B 00:00:00
          zabbix-non-supported | 951 B 00:00:00
          (1/3): epel/x86_64/group_gz | 170 kB 00:00:00
          (2/3): epel/x86_64/primary_db | 4.5 MB 00:00:00
          (3/3): epel/x86_64/updateinfo | 732 kB 00:00:00
          (1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
          (2/2): zabbix/x86_64/primary | 15 kB 00:00:00
          zabbix 105/105
          zabbix-non-supported 4/4
          Resolving Dependencies
          --> Running transaction check
          ---> Package httpd.x86_64 0:2.4.6-45.el7 will be installed
          --> Processing Dependency: httpd-tools = 2.4.6-45.el7 for package: httpd-2.4.6-45.el7.x86_64
          --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-45.el7.x86_64
          --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-45.el7.x86_64
          --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-45.el7.x86_64
          ---> Package mariadb.x86_64 1:5.5.52-1.el7 will be installed
          --> Processing Dependency: /usr/bin/perl for package: 1:mariadb-5.5.52-1.el7.x86_64
          ....

          --> Processing Dependency: php-mbstring for package: zabbix-web-3.0.7-1.el7.noarch
          --> Processing Dependency: php-bcmath for package: zabbix-web-3.0.7-1.el7.noarch
          --> Finished Dependency Resolution
          Error: Package: zabbix-web-3.0.7-1.el7.noarch (zabbix)
          Requires: php-mbstring
          Error: Package: zabbix-web-3.0.7-1.el7.noarch (zabbix)
          Requires: php-bcmath
          You could try using --skip-broken to work around the problem
          You could try running: rpm -Va --nofiles --nodigest


          Thoughts?

          Thanks in advance,
          JMCD


          Originally posted by Atsushi
          You can not install packages for RHEL 7 on Amazon Linux.
          Dependent packages and versions are different.

          You will be able to install packages for RHEL 6.
          However, some functions can not be used because they are built with dependencies of old libraries.
          If you want to use all functions of Zabbix 3.0 or later, you should rebuild it on Amazon Linux.

          My srpm of Zabbix 3.0.6 is in the following URL.

          Sorry, The explanation is Japanese only.

          Comment

          • joshuamcdo
            Member
            • Nov 2013
            • 76

            #6
            I figured a way around it.. although I shouldn't have had to do this..

            wget http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
            wget http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
            yum install php-common
            rpm -ivh *.rpm

            yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php


            Thanks,

            Originally posted by joshuamcdo
            I get that I can't install RHEL 7 version on Amazon linux. I have tried installing it on both platforms and the RHEL 7 install doesn't work either. I built an instance with RHEL 7, added the RHEL 7 zabbix repo and tried to install. I get the error messages that "php-mbstring" & "php-bcmath" cannot be founda and the only way around that I find installs php7 which doesn't work.


            #cat /etc/redhat-release
            Red Hat Enterprise Linux Server release 7.3 (Maipo)

            yum -y update
            reboot
            rpm -ivh https://dl.fedoraproject.org/pub/epe...t-7.noarch.rpm
            rpm -ivh http://repo.zabbix.com/zabbix/3.0/rh...el7.noarch.rpm
            yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php


            yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php
            Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
            epel/x86_64/metalink | 16 kB 00:00:00
            epel | 4.3 kB 00:00:00
            zabbix | 951 B 00:00:00
            zabbix-non-supported | 951 B 00:00:00
            (1/3): epel/x86_64/group_gz | 170 kB 00:00:00
            (2/3): epel/x86_64/primary_db | 4.5 MB 00:00:00
            (3/3): epel/x86_64/updateinfo | 732 kB 00:00:00
            (1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
            (2/2): zabbix/x86_64/primary | 15 kB 00:00:00
            zabbix 105/105
            zabbix-non-supported 4/4
            Resolving Dependencies
            --> Running transaction check
            ---> Package httpd.x86_64 0:2.4.6-45.el7 will be installed
            --> Processing Dependency: httpd-tools = 2.4.6-45.el7 for package: httpd-2.4.6-45.el7.x86_64
            --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-45.el7.x86_64
            --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-45.el7.x86_64
            --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-45.el7.x86_64
            ---> Package mariadb.x86_64 1:5.5.52-1.el7 will be installed
            --> Processing Dependency: /usr/bin/perl for package: 1:mariadb-5.5.52-1.el7.x86_64
            ....

            --> Processing Dependency: php-mbstring for package: zabbix-web-3.0.7-1.el7.noarch
            --> Processing Dependency: php-bcmath for package: zabbix-web-3.0.7-1.el7.noarch
            --> Finished Dependency Resolution
            Error: Package: zabbix-web-3.0.7-1.el7.noarch (zabbix)
            Requires: php-mbstring
            Error: Package: zabbix-web-3.0.7-1.el7.noarch (zabbix)
            Requires: php-bcmath
            You could try using --skip-broken to work around the problem
            You could try running: rpm -Va --nofiles --nodigest


            Thoughts?

            Thanks in advance,
            JMCD

            Comment

            • Atsushi
              Senior Member
              • Aug 2013
              • 2028

              #7
              When using RHEL, you need to enable the Optional repository.
              If it is RHEL 7 on EC2, please execute the following command line.

              Code:
              $ sudo yum-config-manager --enable rhui-REGION-rhel-server-optional


              I think that installing CentOS package on RHEL became out of support of Redhat.

              Comment

              • joshuamcdo
                Member
                • Nov 2013
                • 76

                #8
                That doesn't work on EC2 instances+RHEL. There is something goofy about the way they handle their channels. I opened a ticket with amazon support to understand what I needed to do to get those packages and all they wanted to do was pass the blame to zabbix no matter how I tried to make them understand.

                Thanks,


                Originally posted by Atsushi
                When using RHEL, you need to enable the Optional repository.
                If it is RHEL 7 on EC2, please execute the following command line.

                Code:
                $ sudo yum-config-manager --enable rhui-REGION-rhel-server-optional


                I think that installing CentOS package on RHEL became out of support of Redhat.

                Comment

                Working...