How to install bcmath in Ubuntu for PHP 7.1
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
add a comment |
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
add a comment |
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
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
php ubuntu-16.04 ubuntu-server php-7.1 bcmath
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
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
How could you installphp7.1
originally if you don't have a ppa with it? o_O
– zerkms
May 11 '17 at 3:13
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
How could you installphp7.1
originally if you don't have a ppa with it? o_O
– zerkms
May 11 '17 at 3:13
add a comment |
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.
How could you installphp7.1
originally if you don't have a ppa with it? o_O
– zerkms
May 11 '17 at 3:13
add a comment |
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.
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.
answered May 11 '17 at 3:08
Vajira LasanthaVajira Lasantha
1,04231230
1,04231230
How could you installphp7.1
originally if you don't have a ppa with it? o_O
– zerkms
May 11 '17 at 3:13
add a comment |
How could you installphp7.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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered May 1 '18 at 22:02
community wiki
Anass Ez-zouaine
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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