Ad Widget

Collapse

php bc-math

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnsmith9874
    Junior Member
    • May 2013
    • 14

    #1

    php bc-math

    Hi,
    I suspect that this might be a PHP issue, but can't see anything about it on other forums.

    I can install Zabbix 2.0.6 on CentOS and Ubuntu no problem. I then try to install it on a RHEL 6.3 box, and when it comes time to start the frontend-based installation, I get red errors for php-bcmath and php-mbstring.

    Trying to install them gives me ..

    Code:
    # yum -y install php-bcmath
    Loaded plugins: product-id, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Setting up Install Process
    No package php-bcmath available.
    Error: Nothing to do
    Can someone point me in the right direction?

    Thanks.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I installed my php-bcmath and php-mbstring through RPM packages because I think I had the same issue as you.

    Here are the packages I used...

    php-bcmath-5.3.3-14.el6_3.x86_64.rpm
    php-mbstring-5.3.3-14.el6_3.x86_64.rpm

    And the syntax to install after you download them to your RHEL box is this:

    sudo rpm -i php-bcmath-5.3.3-14.el6_3.x86_64.rpm
    sudo rpm -i php-mbstring-5.3.3-14.el6_3.x86_64.rpm

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      I actually also installed most other php modules through RPM's as well. Besides the 2 listed above, I installed these too:

      php-5.3.3-14.el6_3.x86_64.rpm
      php-mysql-5.3.3-14.el6_3.x86_64.rpm
      php-common-5.3.3-14.el6_3.x86_64.rpm
      php-xml-5.3.3-14.el6_3.x86_64.rpm
      php-cli-5.3.3-14.el6_3.x86_64.rpm
      Last edited by tchjts1; 31-05-2013, 18:21.

      Comment

      • ZBX_beginner
        Junior Member
        • May 2013
        • 3

        #4
        Hi

        I have seen the same issues with redhat, if you would like the later versions of php-bcmath and php-mbstring. They can be found on the different redhat repo, that is not enabled by default.
        e.g.

        yum install php-bcmath php-mbstring --enablerepo=rhel-6-server-optional-rpms

        Hope that helps.

        Comment

        • johnsmith9874
          Junior Member
          • May 2013
          • 14

          #5
          Originally posted by ZBX_beginner
          Hi

          I have seen the same issues with redhat, if you would like the later versions of php-bcmath and php-mbstring. They can be found on the different redhat repo, that is not enabled by default.
          e.g.

          yum install php-bcmath php-mbstring --enablerepo=rhel-6-server-optional-rpms

          Hope that helps.
          Thanks for that. Unable to get the repository, though ..

          Code:
          root@hostname ~# yum install php-bcmath php-mbstring --enablerepo=rhel-6-server-optional-rpms
          Loaded plugins: product-id, subscription-manager
          Updating certificate-based repositories.
          Unable to read consumer identity
          
          
          Error getting repository data for rhel-6-server-optional-rpms, repository not found

          Comment

          • f.koch
            Member
            Zabbix Certified Specialist
            • Feb 2010
            • 85

            #6
            Hi,

            you need to login in your rhn network account and enable the optional channel, then you can install the rpms, this all works only if you had a rhn subscription and your system is registred within the rhn

            regards f.koch

            Comment

            • johnsmith9874
              Junior Member
              • May 2013
              • 14

              #7
              Originally posted by f.koch
              Hi,

              you need to login in your rhn network account and enable the optional channel, then you can install the rpms, this all works only if you had a rhn subscription and your system is registred within the rhn

              regards f.koch
              OK, that's going to be somewhat problematic. Is it possible to get these two RPMs from somewhere else?

              Comment

              • f.koch
                Member
                Zabbix Certified Specialist
                • Feb 2010
                • 85

                #8
                Hm if you have no rhn subscription why not use centos?

                Comment

                • johnsmith9874
                  Junior Member
                  • May 2013
                  • 14

                  #9
                  Originally posted by f.koch
                  Hm if you have no rhn subscription why not use centos?
                  Good point. OK, I have just registered with RHN. Now to find my way around... this is going to be complicated. I'm on leave as from tomorrow, and they need Zabbix installed before I go ..

                  Comment

                  • f.koch
                    Member
                    Zabbix Certified Specialist
                    • Feb 2010
                    • 85

                    #10
                    the rpms from centos should work on rhel without problems

                    Comment

                    • johnsmith9874
                      Junior Member
                      • May 2013
                      • 14

                      #11
                      Originally posted by johnsmith9874
                      Good point. OK, I have just registered with RHN. Now to find my way around... this is going to be complicated. I'm on leave as from tomorrow, and they need Zabbix installed before I go ..
                      Code:
                      rhn-channel -add -channel=rhel-6-server-optional
                      Usage: rhn-channel [options]
                      
                      rhn-channel: error: no such option: -d
                      ???

                      Comment

                      • johnsmith9874
                        Junior Member
                        • May 2013
                        • 14

                        #12
                        Originally posted by f.koch
                        the rpms from centos should work on rhel without problems
                        I can't help but ask why RH has to make it so complicated.

                        I come from a Solaris background, and installing stuff was usually a matter of getting the tarball, and then ./configure, followed by make && make install.

                        Weren't RPMs and the like supposed to make it less complicated, and not more?

                        Comment

                        • f.koch
                          Member
                          Zabbix Certified Specialist
                          • Feb 2010
                          • 85

                          #13
                          have you registred the system with rhn_register?, you only need to add the channel in the rhn, if the system is registred.

                          Comment

                          • johnsmith9874
                            Junior Member
                            • May 2013
                            • 14

                            #14
                            Originally posted by f.koch
                            have you registred the system with rhn_register?, you only need to add the channel in the rhn, if the system is registred.
                            Sorry, dude, the above might as well be Chinese....

                            Comment

                            • f.koch
                              Member
                              Zabbix Certified Specialist
                              • Feb 2010
                              • 85

                              #15


                              or grab the centos rpms and be happy

                              Comment

                              Working...