I would suggest two things:

    $ brew install pkg-config

and then before building Sage, while in SAGE_ROOT:

    $ source .homebrew-build-env

Then try ./configure to see what it says at the end about system packages.


On Tuesday, April 14, 2020 at 6:21:40 AM UTC-7, David Coudert wrote:
>
> I assume there is nothing simple I can do to fix this.
> Thanks,
> David.
>
> Le 14 avr. 2020 à 15:09, Dima Pasechnik <dim...@gmail.com <javascript:>> 
> a écrit :
>
> On Tue, Apr 14, 2020 at 8:41 PM David Coudert <david....@inria.fr 
> <javascript:>> wrote:
>
>
> I have similar issues on osx.
>
> I installed several packages using brew. Some of them are recognized, but 
> not some others.
> I suspect that I'm missing some dependencies, and possibly some 
> environment variables.
>
> For instance, I installed amp, mpfr, mpir, ntl and flint, and flint is the 
> only one not accepted. Why ?
>
> I have also an issue with readline. I'm unable to tell sage that it has 
> been installed with brew :(
>
> Any advise is more than welcome.
> Best,
> David.
>
>
> -----------------------------------------------------------------------------
>
> Checking whether SageMath should install SPKG mpfr...
>
> checking installing gmp/mpir? ... no
>
> checking mpfr.h usability... yes
>
> checking mpfr.h presence... yes
>
> checking for mpfr.h... yes
>
> checking for library containing mpfr_free_pool... -lmpfr
>
> configure: will use system package and not install SPKG mpfr
>
> using mpfr library from the system
>
>
> -----------------------------------------------------------------------------
>
> Checking whether SageMath should install SPKG ntl...
>
> checking installing gmp/mpir? ... no
>
> checking NTL/ZZ.h usability... yes
>
> checking NTL/ZZ.h presence... yes
>
> checking for NTL/ZZ.h... yes
>
> checking whether we can link a program using NTL... yes
>
> checking NTL version >= 10.3... 11.4.3
>
> configure: will use system package and not install SPKG ntl
>
> using ntl library from the system
>
>
> -----------------------------------------------------------------------------
>
> Checking whether SageMath should install SPKG flint...
>
> checking installing mpfr or ntl? ... checking flint/flint.h usability... 
> yes
>
> checking flint/flint.h presence... yes
>
> checking for flint/flint.h... yes
>
> checking for library containing fmpz_mat_is_hadamard... -lflint
>
> checking for library containing fmpz_poly_get_ZZX... no
>
> configure: no suitable system package found for SPKG flint
>
> using Sage's flint SPKG
>
>
> Apparently in your Arch Flint is not linked with NTL, while this is a
> requirement for it to be
> in useful in Sage.
>
> E.g. that's on Debian:
>
> dimpase@penguin:~/sage$ ldd /usr/lib/x86_64-linux-gnu/libflint-arb.so
> linux-vdso.so.1 (0x00007fff6a5fe000)
> libflint-2.5.2.so => /usr/lib/libflint-2.5.2.so (0x00007d084386d000)
> libmpfr.so.6 => /usr/lib/x86_64-linux-gnu/libmpfr.so.6 (0x00007d08437eb000)
> libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007d0843768000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007d08435e5000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
> (0x00007d08435c4000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007d0843403000)
> /lib64/ld-linux-x86-64.so.2 (0x00007d0843e39000)
> libntl.so.35 => /usr/lib/libntl.so.35 (0x00007d0842fd2000)
> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
> (0x00007d0842e4e000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007d0842e34000)
> libgf2x.so.1 => /usr/lib/x86_64-linux-gnu/libgf2x.so.1 (0x00007d0842c26000)
>
> So you see libntl there.
>
>
>
>
>
> -----------------------------------------------------------------------------
>
>
>
>
>
>
> Le jeudi 19 mars 2020 14:52:46 UTC+1, vdelecroix a écrit :
>
>
> Dear all,
>
> Thanks to hard work it is now possible to use some package from
> the system! That is great! But on my archlinux computer that also
> has sage installed from the package manager the following
> packages are still detected has "to be installed"
>
> * eclib-20190909
> * givaro-4.1.1
> * lcalc-1.23.p19
> * pari-2.11.2
> * pari_galdata-20080411.p0
> * pari_seadata_small-20090618.p0
>
> The relevant package in archlinux I have are
>
> * community/eclib 20190909-8
> * community/givaro 4.1.1-1
> * community/lcalc 1.23-19
> * community/pari 2.11.3-2
> * community/pari-galdata 20080411-2
> * community/pari-seadata-small 20090618-2
>
> Should I suspect that something is wrong with the Sage
> configure scripts? Or that something is wrong with the packages
> from archlinux?
>
> Best
> Vincent
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/22c61efc-e6c6-48b7-9cfc-483dc548af93%40googlegroups.com
> .
>
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-devel/JgArPVx7dwg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> sage-...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq3vubtGJ-Qj%3DF_CMZEA22Qw_ORBoJB_VvsPP3%3DhmecZ%3DQ%40mail.gmail.com
> .
>
>
> ----
> David Coudert
> Equipe-Projet COATI
> Centre de Recherche INRIA Sophia Antipolis - Méditerranée
> Université Côte d’Azur, Inria, CNRS, I3S, France
> http://www-sop.inria.fr/members/David.Coudert
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/9f66173c-8e03-4fa7-9019-8fa56b5d36d8%40googlegroups.com.

Reply via email to