Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #206650 > unrolled thread

bcmath extension for php 7.1 on debian linux

Started by<gro.naibed@lagelagelage.ch>
First post2019-03-27 07:50 +0100
Last post2019-03-27 13:30 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  bcmath extension for php 7.1 on debian linux <gro.naibed@lagelagelage.ch> - 2019-03-27 07:50 +0100
    Re: bcmath extension for php 7.1 on debian linux "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-03-27 08:40 +0100
    Re: bcmath extension for php 7.1 on debian linux Roberto C. Sánchez <roberto@debian.org> - 2019-03-27 12:50 +0100
      Re: bcmath extension for php 7.1 on debian linux "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-03-27 13:10 +0100
        Re: bcmath extension for php 7.1 on debian linux Roberto C. Sánchez <roberto@debian.org> - 2019-03-27 13:30 +0100

#206650 — bcmath extension for php 7.1 on debian linux

From<gro.naibed@lagelagelage.ch>
Date2019-03-27 07:50 +0100
Subjectbcmath extension for php 7.1 on debian linux
Message-ID<xGaxQ-5hi-15@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi all

 

We need your help.

 

We need to use the bcmath extension on PHP 7.1 with a debian linux server.

We cant found any source or any think to install this extension.

We try to intall it with apt-get and also to add other sources to
sourcelist.

 

Can you help us to install it?

 

Thx you a lot.

[toc] | [next] | [standalone]


#206651

From"Alexander V. Makartsev" <avbetev@gmail.com>
Date2019-03-27 08:40 +0100
Message-ID<xGbkd-5Mo-9@gated-at.bofh.it>
In reply to#206650

[Multipart message — attachments visible in raw view] — view raw

On 27.03.2019 10:43, gro.naibed@lagelagelage.ch wrote:
>
> Hi all
>
>  
>
> We need your help…
>
>  
>
> We need to use the bcmath extension on PHP 7.1 with a debian linux server…
>
> We cant found any source or any think to install this extension.
>
> We try to intall it with apt-get and also to add other sources to
> sourcelist.
>
>  
>
> Can you help us to install it?
>
>  
>
> Thx you a lot.
>
At this moment PHP version 7.1 is not available in Debian repositories,
only version 7.0 is available in "stable" branch and version 7.3 in
"testing" branch.
Are sure you want exactly PHP version 7.1?

If PHP 7.0 is enough for your requirements and you are making a brand
new server configuration (not trying to fix current one, because PHP
could be installed and setup in multiple different ways), you can
install it and bcmath extension with this command:
# apt install php7.0 php7.0-bcmath

To check if your PHP setup has "bcmath" extension enabled:
$ php --version
$ php -r "phpinfo();" | grep BCMath


-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

[toc] | [prev] | [next] | [standalone]


#206658

FromRoberto C. Sánchez <roberto@debian.org>
Date2019-03-27 12:50 +0100
Message-ID<xGfea-85q-17@gated-at.bofh.it>
In reply to#206650
On Wed, Mar 27, 2019 at 06:43:59AM +0100, gro.naibed@lagelagelage.ch wrote:
>    Hi all
> 
>     
> 
>    We need your help…
> 
>     
> 
>    We need to use the bcmath extension on PHP 7.1 with a debian linux server…
> 
>    We cant found any source or any think to install this extension.
> 
>    We try to intall it with apt-get and also to add other sources to
>    sourcelist.
> 
>     
> 
>    Can you help us to install it?
> 
You do not provide enough information to know what version of Debian you
are using, but I am going to guess that you are using Debian stretch
(9).  You also do not mention what other sources you have tried adding
to your sources.list.  You also don't mention how you were able to
install PHP 7.1 (whether from upstream sources, or from Debian
packages).

I find it puzzling that you managed to install PHP 7.1 but now are not
able to install the corresponding bcmath package.  If you build from
sources, then it probably was built and installed along with the other
PHP components and you just need to enable it in your php.ini.

That said, you may want to consider installing your PHP packages from
this source: https://deb.sury.org/

That site is maintained by Ondřej Surý, who is a Debian Developer and
also one of the main PHP maintainers for Debian and Ubuntu.

Regards,

-Roberto

-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#206660

From"Alexander V. Makartsev" <avbetev@gmail.com>
Date2019-03-27 13:10 +0100
Message-ID<xGfxw-8ru-11@gated-at.bofh.it>
In reply to#206658

[Multipart message — attachments visible in raw view] — view raw

On 27.03.2019 16:45, Roberto C. Sánchez wrote:
>
> That said, you may want to consider installing your PHP packages from
> this source: https://deb.sury.org/
>
> That site is maintained by Ondřej Surý, who is a Debian Developer and
> also one of the main PHP maintainers for Debian and Ubuntu.
>
> Regards,
>
> -Roberto
>
This information could be very useful for me in the future, and save
some time.
Still, in case of PHP, in order to mitigate "the version compatibility
hell" and comply with requirements of various frameworks and CMS, I have
to build personal packages from sources available upstream, most of the
time.
Now I wonder, why is the owner of this repository doesn't contribute
these packages to the original Debian repositories? Not even in form of
backports.
Is the process too complicated and time consuming, so even Debian
Developer and PHP maintainer finds it easier to just host his own repo
online?

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

[toc] | [prev] | [next] | [standalone]


#206662

FromRoberto C. Sánchez <roberto@debian.org>
Date2019-03-27 13:30 +0100
Message-ID<xGfQR-5R-1@gated-at.bofh.it>
In reply to#206660
On Wed, Mar 27, 2019 at 05:08:11PM +0500, Alexander V. Makartsev wrote:
>    On 27.03.2019 16:45, Roberto C. Sánchez wrote:
> 
>  That said, you may want to consider installing your PHP packages from
>  this source: [1]https://deb.sury.org/
> 
>  That site is maintained by Ondřej Surý, who is a Debian Developer and
>  also one of the main PHP maintainers for Debian and Ubuntu.
> 
>  Regards,
> 
>  -Roberto
> 
> 
>    This information could be very useful for me in the future, and save some
>    time.
>    Still, in case of PHP, in order to mitigate "the version compatibility
>    hell" and comply with requirements of various frameworks and CMS, I have
>    to build personal packages from sources available upstream, most of the
>    time.

Wow.  That must be frustrating indeed.

>    Now I wonder, why is the owner of this repository doesn't contribute these
>    packages to the original Debian repositories? Not even in form of
>    backports.

That is effectively what the repository is.  It provides various
versions of PHP for various versions of Debian (and Ubuntu), all
maintained by the individual who is principally reponsible for PHP in
both distributions.

>    Is the process too complicated and time consuming, so even Debian
>    Developer and PHP maintainer finds it easier to just host his own repo
>    online?
> 
Uploading a package to an official backports repository does involve
additional work.  Given the complexity of PHP I can certainly understand
why Ondřej is not interested in unnecessarily increasing his workload.
He has given his reasons a bit more specifically in public mailing list
discussions in the past, but my recollection boils down to him saying
something like, "they are the same packages I upload to Debian, signed
with the same key used to sign the packages in Debian."

If you need a version of PHP apart from what ships in whatever version
of Debian you happen to be using, I encourage you to consider it, as it
is an excellent resource.  In my mind there is no reason to think that
packages originating from Ondřej's repository are any less trustworthy
or of any lesser quality than those in Debian itself.

Regards,

-Roberto

-- 
Roberto C. Sánchez

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web