bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: complie with mpfr support


From: arnold
Subject: Re: complie with mpfr support
Date: Thu, 04 Feb 2021 12:55:24 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Ivan Molineris <ivan.molineris@gmail.com> wrote:

> Hi all,
> I would like to avoid problems like this one:
> https://stackoverflow.com/questions/20684195/awk-and-numeric-comparison-with-number-less-than-1-7e-308
>
> If I understood well, if gawk is compiled with mpfr support, invoking it
> with -M solve the problem.
>
> I tried to install mpfr whit
> $ conda create -n gawk-compile -c conda-forge mpfr
> and to configure ad compile gawk in this environment, but -M is still not
> available.
> How can I compile gawk with mpfr?
>
> Regards

I have no idea what conda is or how it works.  I assume it's on some
kind of Linux system?

The simplest thing is to comple the GMP and MPFR libraries from
source and install then and then compile gawk from source with the
standard configure and make recipe.

If you're on a Linux system with gawk already installed, maybe it was
compiled with MPFR support already?  The output of gawk --version will
show you the MPFR and GMP versions if so.

HTH,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]