How to install bcmath in Ubuntu for PHP 7.1












6















I'm using an Ubuntu 16 server for testing with php7.1. One of my app uses bcadd function. I know that I need to install bcmath module for that but I'm unable to find php7.1-bcmath. When I tried to install apt install php-bcmath, it simply installed php7.0-bcmath module.



I was unable to find php7.1-bcmath module anywhere to install on my server. Does anybody has an idea?



apt install php7.1-bcmath returned following,



E: Unable to locate package php7.1-bcmath

E: Couldn't find any package by glob 'php7.1-bcmath'

E: Couldn't find any package by regex 'php7.1-bcmath'









share|improve this question





























    6















    I'm using an Ubuntu 16 server for testing with php7.1. One of my app uses bcadd function. I know that I need to install bcmath module for that but I'm unable to find php7.1-bcmath. When I tried to install apt install php-bcmath, it simply installed php7.0-bcmath module.



    I was unable to find php7.1-bcmath module anywhere to install on my server. Does anybody has an idea?



    apt install php7.1-bcmath returned following,



    E: Unable to locate package php7.1-bcmath

    E: Couldn't find any package by glob 'php7.1-bcmath'

    E: Couldn't find any package by regex 'php7.1-bcmath'









    share|improve this question



























      6












      6








      6


      2






      I'm using an Ubuntu 16 server for testing with php7.1. One of my app uses bcadd function. I know that I need to install bcmath module for that but I'm unable to find php7.1-bcmath. When I tried to install apt install php-bcmath, it simply installed php7.0-bcmath module.



      I was unable to find php7.1-bcmath module anywhere to install on my server. Does anybody has an idea?



      apt install php7.1-bcmath returned following,



      E: Unable to locate package php7.1-bcmath

      E: Couldn't find any package by glob 'php7.1-bcmath'

      E: Couldn't find any package by regex 'php7.1-bcmath'









      share|improve this question
















      I'm using an Ubuntu 16 server for testing with php7.1. One of my app uses bcadd function. I know that I need to install bcmath module for that but I'm unable to find php7.1-bcmath. When I tried to install apt install php-bcmath, it simply installed php7.0-bcmath module.



      I was unable to find php7.1-bcmath module anywhere to install on my server. Does anybody has an idea?



      apt install php7.1-bcmath returned following,



      E: Unable to locate package php7.1-bcmath

      E: Couldn't find any package by glob 'php7.1-bcmath'

      E: Couldn't find any package by regex 'php7.1-bcmath'






      php ubuntu-16.04 ubuntu-server php-7.1 bcmath






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 9:37









      Álvaro González

      106k30187277




      106k30187277










      asked May 11 '17 at 2:36









      Vajira LasanthaVajira Lasantha

      1,04231230




      1,04231230
























          2 Answers
          2






          active

          oldest

          votes


















          19














          Answering my own question. Managed to fix this issue with following repo update.



          add-apt-repository ppa:ondrej/php
          apt update
          apt install php7.1-bcmath


          Restart apache and all good to go.






          share|improve this answer
























          • How could you install php7.1 originally if you don't have a ppa with it? o_O

            – zerkms
            May 11 '17 at 3:13



















          3














          install this :
          https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download



          add this :



          deb http://security.ubuntu.com/ubuntu artful-security main universe


          to /etc/apt/sources.list



          $ sudo apt update

          $ sudo apt install php7.1-bcmath





          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43905580%2fhow-to-install-bcmath-in-ubuntu-for-php-7-1%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            19














            Answering my own question. Managed to fix this issue with following repo update.



            add-apt-repository ppa:ondrej/php
            apt update
            apt install php7.1-bcmath


            Restart apache and all good to go.






            share|improve this answer
























            • How could you install php7.1 originally if you don't have a ppa with it? o_O

              – zerkms
              May 11 '17 at 3:13
















            19














            Answering my own question. Managed to fix this issue with following repo update.



            add-apt-repository ppa:ondrej/php
            apt update
            apt install php7.1-bcmath


            Restart apache and all good to go.






            share|improve this answer
























            • How could you install php7.1 originally if you don't have a ppa with it? o_O

              – zerkms
              May 11 '17 at 3:13














            19












            19








            19







            Answering my own question. Managed to fix this issue with following repo update.



            add-apt-repository ppa:ondrej/php
            apt update
            apt install php7.1-bcmath


            Restart apache and all good to go.






            share|improve this answer













            Answering my own question. Managed to fix this issue with following repo update.



            add-apt-repository ppa:ondrej/php
            apt update
            apt install php7.1-bcmath


            Restart apache and all good to go.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 11 '17 at 3:08









            Vajira LasanthaVajira Lasantha

            1,04231230




            1,04231230













            • How could you install php7.1 originally if you don't have a ppa with it? o_O

              – zerkms
              May 11 '17 at 3:13



















            • How could you install php7.1 originally if you don't have a ppa with it? o_O

              – zerkms
              May 11 '17 at 3:13

















            How could you install php7.1 originally if you don't have a ppa with it? o_O

            – zerkms
            May 11 '17 at 3:13





            How could you install php7.1 originally if you don't have a ppa with it? o_O

            – zerkms
            May 11 '17 at 3:13













            3














            install this :
            https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download



            add this :



            deb http://security.ubuntu.com/ubuntu artful-security main universe


            to /etc/apt/sources.list



            $ sudo apt update

            $ sudo apt install php7.1-bcmath





            share|improve this answer






























              3














              install this :
              https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download



              add this :



              deb http://security.ubuntu.com/ubuntu artful-security main universe


              to /etc/apt/sources.list



              $ sudo apt update

              $ sudo apt install php7.1-bcmath





              share|improve this answer




























                3












                3








                3







                install this :
                https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download



                add this :



                deb http://security.ubuntu.com/ubuntu artful-security main universe


                to /etc/apt/sources.list



                $ sudo apt update

                $ sudo apt install php7.1-bcmath





                share|improve this answer















                install this :
                https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download



                add this :



                deb http://security.ubuntu.com/ubuntu artful-security main universe


                to /etc/apt/sources.list



                $ sudo apt update

                $ sudo apt install php7.1-bcmath






                share|improve this answer














                share|improve this answer



                share|improve this answer








                answered May 1 '18 at 22:02


























                community wiki





                Anass Ez-zouaine































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43905580%2fhow-to-install-bcmath-in-ubuntu-for-php-7-1%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine