[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] ./configure won't detect GMP
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] ./configure won't detect GMP |
Date: |
Wed, 2 Sep 2015 22:31:16 +0200 |
Hi Szabolcs,
The configure script looks for a header named gmp.h and a library that
contains the symbol named __gmpz_add. I think that your LDFLAGS is
okay since it contains a .dylib or .so file that contains __gmpz_add,
but your CFLAGS variable should be like this:
export CFLAGS=-I$HOME/local/include/gmp
This is because gmp installs its headers in $prefix/include/gmp and
not in $prefix/include, and igraph tries to include them with #include
<gmp.h>.
T.
T.
On Wed, Sep 2, 2015 at 5:54 PM, Szabolcs Horvát <address@hidden> wrote:
> Dear All,
>
> I'm compiling igraph on OS X 10.10.5 using the system compiler.
>
> I'm trying to use GMP 6.0.0 from https://gmplib.org/, which I
> installed into $HOME/local. I configure igraph like this:
>
> export CFLAGS=-I$HOME/local/include
> export LDFLAGS=-L$HOME/local/lib
> ./configure --prefix=$HOME/local
>
> The configure script fails to detect GMP. How can I get it to succeed?
>
> Notes: It does detect MacPorts's GMP if I try to use it. It's also
> version 6.0.0. If I remove the part of the configure script that
> detects GMP to trick it into thinking that it's present, igraph does
> compile correctly, and it does work correctly (including functions
> that use GMP).
>
> I don't know anything about autoconf and don't understand how it tries
> to detect GMP ...
>
> Am I doing something wrong or is the GMP detection buggy?
>
> Szabolcs
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help