Ad Widget

Collapse

php bc-math

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

    #16
    Originally posted by f.koch
    https://access.redhat.com/site/docum...hnreg-x86.html

    or grab the centos rpms and be happy
    OK, that's a good URL, thanks. Except for 'invalid username or password'.

    I created an account here: https://www.redhat.com/wapps/ugc/reg...A-59D03BDD9ABC

    Username and password duly put into keepassx on my laptop, here. And now it won't accept them.

    As for the RPM .. 'grab[bing] the RPM' supposes that I know where to get them...

    Comment

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

      #17

      Comment

      • johnsmith9874
        Junior Member
        • May 2013
        • 14

        #18
        Ah, thank you.

        Oops ..

        Code:
        Error: required dependencies: php-common(x86-64) = 5.3.3-22.el6 is required for php-bcmath-5.3.3-22.el6.x86_64.
        But ...

        Code:
        yum -y install php-common
        Loaded plugins: downloadonly, product-id, subscription-manager
        Updating certificate-based repositories.
        Unable to read consumer identity
        Setting up Install Process
        Package php-common-5.3.3-3.el6_2.8.x86_64 already installed and latest version
        Nothing to do
        This is becoming aklmost comical ...

        Comment

        • johnsmith9874
          Junior Member
          • May 2013
          • 14

          #19
          I really appreciate the help you've been giving me, here. I spent so long administering 'real' UNIX, and went through all these 'teething troubles' when resolving dependencies, getting tarballs etc. And now I have to go through the same process, but for RH.

          Would it be possible to give me the commands I need to resolve this? I would really appreciate that - and would owe you a beer if you ever make it to my neck of the woods.

          Comment

          • johnsmith9874
            Junior Member
            • May 2013
            • 14

            #20
            In a desperate attempt to fix this, I removed php-common and then used the rpms.

            Code:
            yum -y remove php-common
            rpm -i php-common-5.3.3-22.el6.x86_64.rpm
            rpm -i php-mbstring-5.3.3-22.el6.x86_64.rpm
            rpm -i php-bcmath-5.3.3-22.el6.x86_64.rpm
            /etc/init.d/httpd restart
            I then connect to the IP address of the server from a browser ... and I see a directory listing of the zabbix directory.

            If I click on index.php, I see the php file displayed, as text. :-(

            Comment

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

              #21
              maybe missing the php package, i think php-common is not php

              Comment

              • johnsmith9874
                Junior Member
                • May 2013
                • 14

                #22
                Originally posted by f.koch
                maybe missing the php package, i think php-common is not php
                Code:
                yum -y install php
                Loaded plugins: downloadonly, product-id, subscription-manager
                Updating certificate-based repositories.
                Unable to read consumer identity
                Setting up Install Process
                Resolving Dependencies
                --> Running transaction check
                ---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
                --> Processing Dependency: php-common = 5.3.3-3.el6_2.8 for package: php-5.3.3-3.el6_2.8.x86_64
                --> Processing Dependency: php-cli = 5.3.3-3.el6_2.8 for package: php-5.3.3-3.el6_2.8.x86_64
                --> Running transaction check
                ---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
                --> Processing Dependency: php-common = 5.3.3-3.el6_2.8 for package: php-5.3.3-3.el6_2.8.x86_64
                ---> Package php-cli.x86_64 0:5.3.3-3.el6_2.8 will be installed
                --> Processing Dependency: php-common = 5.3.3-3.el6_2.8 for package: php-cli-5.3.3-3.el6_2.8.x86_64
                --> Finished Dependency Resolution
                Error: Package: php-5.3.3-3.el6_2.8.x86_64 (base)
                           Requires: php-common = 5.3.3-3.el6_2.8
                           Installed: php-common-5.3.3-22.el6.x86_64 (installed)
                               php-common = 5.3.3-22.el6
                           Available: php-common-5.3.3-3.el6_2.8.x86_64 (base)
                               php-common = 5.3.3-3.el6_2.8
                Error: Package: php-cli-5.3.3-3.el6_2.8.x86_64 (base)
                           Requires: php-common = 5.3.3-3.el6_2.8
                           Installed: php-common-5.3.3-22.el6.x86_64 (installed)
                               php-common = 5.3.3-22.el6
                           Available: php-common-5.3.3-3.el6_2.8.x86_64 (base)
                               php-common = 5.3.3-3.el6_2.8
                 You could try using --skip-broken to work around the problem
                 You could try running: rpm -Va --nofiles --nodigest

                Comment

                • ZBX_beginner
                  Junior Member
                  • May 2013
                  • 3

                  #23
                  Hi Johnsmith9874

                  Although the server is registered you may find that it needs to be subscribed. This could be dependant on the type of redhat licenses that have been purchased.


                  # subscriptionmanager list

                  that should show you that it is subscribed. e.g

                  +-------------------------------------------+
                  Installed Product Status
                  +-------------------------------------------+
                  Product Name: Red Hat Enterprise Linux Server
                  Product ID: 69
                  Version: 6.3
                  Arch: x86_64
                  Status: Subscribed
                  Starts: xx/xx/xx
                  Ends: xx/xx/xx

                  If it is not you can run
                  # subscriptionmanager subscribe --auto

                  Just to be sure test list again - I am sure the above command will tell you upon completion but i dont have another server i can test with.

                  If it is not subscribed you may find that it becomes a licensing issue and would need to work thorugh RH network to see otherwise.


                  If you find that you are then subscribed, they you should have access to the all the redhat repos without having to add them.

                  Once confirmed that you have the required access.

                  yum list php* --enablerepo=rhel-6-server-optional-rpms

                  ## That will allow to list and test the repo ##

                  If the above works.

                  Remove all the external rpms you have added either (if used yum)

                  # yum history list -- find the one that you installed them all with
                  # yum history info {add number here} -- this will show what was installed etc

                  alternatively you can

                  # rpm -e {packages name}

                  This should then allow you to have the access to install

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

                  I hope this manages to help.

                  Comment

                  • tdsan
                    Junior Member
                    • May 2014
                    • 1

                    #24
                    RPM Locations

                    rpm -Uvh http://ftp.linux.duke.edu/pub/centos...2.1.x86_64.rpm

                    rpm -Uvh http://ftp.linux.duke.edu/pub/centos...2.1.x86_64.rpm

                    The user can access the various repos from Duke University, they can use different versions of the OS instead of creating a Redhat subscription.

                    Todd

                    Comment

                    Working...