Ad Widget

Collapse

How to install php-bc-math ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kai-Kai
    Senior Member
    • Apr 2009
    • 142

    #1

    How to install php-bc-math ?

    Hello,
    sorry for my poor english, but I'm not english natively speaking. I'll try to do my best to be understood.

    When I tried to install Zabbix on my server (Sun Solaris 10), I've a problem with php from Sunfreeware.com. It doesn't include bc maths (needed to complete the web installation).
    I would like to avoid replacing my current php by a one compiled by myself. I can compile php5 in another directory to create all modules if needed.

    But, how can I install php bc maths in my current php installation ?
    Can somebody help me ?

    If you need more details, feel free to ask.
    Thanks in advance.
    Last edited by Kai-Kai; 21-04-2009, 12:03. Reason: Problem solved.
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    Try using the Sun Web Stack instead of the sunfreeware.com packages. They include bcmath afaik, you just have to enable the module in the php.ini file after installation.

    Comment

    • Kai-Kai
      Senior Member
      • Apr 2009
      • 142

      #3
      Thanks for your answer. I think this paskage includes apache, mysql and php doesn't it ?
      If possible, I would like to avoid replacing my current version of apache2 / mysql. Is it possible to install only php ?

      Or is there another way to install modules ?
      Last edited by Kai-Kai; 15-04-2009, 14:06.

      Comment

      • Tenzer
        Senior Member
        • Nov 2007
        • 316

        #4
        You can install the packages separately, so you can choose to only install PHP.

        Comment

        • Kai-Kai
          Senior Member
          • Apr 2009
          • 142

          #5
          Ok. Thanks again for your help.
          On the dl page, I just found 2 packages Solaris 10 5/08, SPARC (without Tomcat and GlassFish) and Solaris 10 5/08, SPARC (with Tomcat and GlassFish).
          I've selected the one without.
          I'm waiting for the download.

          I suppose the differents packages (php, apache2...) are in the .tar.gz ?

          Comment

          • Kai-Kai
            Senior Member
            • Apr 2009
            • 142

            #6
            Ok.
            So according to the readme, you juste have to uncompress the pack and launch the script with the correct option.

            gunzip webstack-native-1.4-b06-solaris-sparc.tar.gz
            tar xf webstack-native-1.4-b06-solaris-sparc.tar
            cd webstack-native-1.4-b06-solaris-sparc
            ./install php

            And it should be ok.
            I'll try that a bit later. I'm currently trying to recompile php to add snmp support to an existing installation. I'll try with this pack too.
            Do you know if the support of snmp is also included in the sun stack php ?

            Comment

            • Tenzer
              Senior Member
              • Nov 2007
              • 316

              #7
              Originally posted by fcge
              Do you know if the support of snmp is also included in the sun stack php ?
              No, I am not aware of that, and I unfortunately don't have any server currently using the Web Stack where I can check this on.

              Comment

              • Kai-Kai
                Senior Member
                • Apr 2009
                • 142

                #8
                Thanks a lot for your help.
                I've solved the problem recompiling php with the right options.

                Hoping it can be usefull for other people :

                Code:
                ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib --with-libxml-dir=/usr/local --with-zlib=/usr/local --with-xpm-dir=/usr/local --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs --without-pgsql --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-gd=/usr/local --enable-mbstring --enable-mbstr-enc-trans --enable-exif --enable-force-cgi-redirect --with-png --with-png-dir=/usr/local --with-curl=/usr/local --with-ldap=/usr/local --with-openssl=/usr/local/ssl --with-gettext --with-pcre-dir=/usr/local --with-freetype-dir=/usr/local --enable-bcmath --with-snmp=/usr/local
                make all
                make test
                make install

                Comment

                • lcondado
                  Member
                  • May 2006
                  • 37

                  #9
                  It was, thanks

                  It was, thanks

                  Comment

                  Working...