Thanks Dima and Samuel.
I did as you suggested and I am a hour into the compile and no errors yet 
so it is looking good.
brett

On Friday, February 26, 2021 at 4:24:59 AM UTC-6 Samuel Lelievre wrote:

> Le jeudi 25 février 2021 à 23:20:16 UTC+1, brettpim a écrit :
>
>> I am having a similar problem.  I have pulled the master branch from git 
>> and I when run 
>>
>> # ./configure 
>>
>> it finishes with 
>>
>> configure: notice: the following SPKGs did not find equivalent system 
>> packages: boost cbc coxeter3 gp2c isl libnauty libsemigroups pari_elldata 
>> pari_galpol pari_nftables pari_seadata python3 tox
>> checking for the package system in use... debian
>> configure: hint: installing the following system packages is recommended 
>> and may avoid building some of the above SPKGs from source:
>> configure:   $ sudo apt-get update 
>>   $ sudo apt-get install libboost-dev coinor-cbc coinor-libcbc-dev 
>> pari-gp2c libisl-dev libnauty-dev python3 libpython3-dev python3-distutils
>>
>> but all these APT packages are already installed:
>>
>> # apt-get install libboost-dev coinor-cbc coinor-libcbc-dev pari-gp2c 
>> libisl-dev libnauty-dev python3 libpython3-dev python3-distutils
>> Reading package lists... Done
>> Building dependency tree       
>> Reading state information... Done
>> Note, selecting 'libnauty2-dev' instead of 'libnauty-dev'
>> libboost-dev is already the newest version (1.71.0.0ubuntu2).
>> libisl-dev is already the newest version (0.22.1-1).
>> libpython3-dev is already the newest version (3.8.2-0ubuntu2).
>> python3 is already the newest version (3.8.2-0ubuntu2).
>> coinor-cbc is already the newest version (2.10.3+repack1-1build1).
>> coinor-libcbc-dev is already the newest version (2.10.3+repack1-1build1).
>> libnauty2-dev is already the newest version (2.6r10+ds-1ubuntu1).
>> pari-gp2c is already the newest version (0.0.11pl2-3).
>> python3-distutils is already the newest version (3.8.5-1~20.04.1).
>> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
>>
>> I don;t know what I need to get ./configure to recognize my python3. The 
>> 'xz' package Matthias refers to is installed:
>>
>> configure:30241: checking for xz >= 4.999.0
>> configure:30320: result: /usr/bin/xz
>> configure:30329: will use system package and not install SPKG xz 
>>
>> config.log attached
>>
>
>
> In your `config.log`, the report for checking
> whether to install the `python3` SPGK reads:
>
> ```
> ## -------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG python3... ##
> ## -------------------------------------------------------- ##
> configure:30455: checking whether any of sqlite libpng bzip2 xz libffi is 
> installed as or will be installed as SPKG
> configure:30459: result: yes; install python3 as well
> configure:31094: no suitable system package found for SPKG python3
> ```
>
> So the decision for `python3` depends, here, not on whether
> a suitable system `python3` exists, but on the status for
> `sqlite`, `libpng`, `bzip2`, `xz`, `libffi`.
>
> Here are the corresponding checks in `config.log`:
>
> ```
> ## ------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG sqlite... ##
> ## ------------------------------------------------------- ##
> configure:30003: sqlite has already been installed by SageMath
> ```
>
> ```
> ## ------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG libpng... ##
> ## ------------------------------------------------------- ##
> configure:14052: libpng has already been installed by SageMath
> ```
>
> ```
> ## ------------------------------------------------------ ##
> ## Checking whether SageMath should install SPKG bzip2... ##
> ## ------------------------------------------------------ ##
> configure:14668: bzip2 has already been installed by SageMath
> ```
>
> ```
> ## --------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG xz... ##
> ## --------------------------------------------------- ##
> configure:30190: checking for lzma_raw_decoder in -llzma
> configure:30215: g++ -std=gnu++11 -std=gnu++11 -o conftest -g -O2  
> -Wl,-rpath-link,/home/brett/Projects/SAGE/sage/local/lib 
> -L/home/brett/Projects/SAGE/sage/local/lib 
> -Wl,-rpath,/home/brett/Projects/SAGE/sage/local/lib  conftest.cpp -llzma  
> -lm  >&5
> configure:30215: $? = 0
> configure:30224: result: yes
> configure:30232: checking lzma.h usability
> configure:30232: g++ -std=gnu++11 -std=gnu++11 -c -g -O2  conftest.cpp >&5
> configure:30232: $? = 0
> configure:30232: result: yes
> configure:30232: checking lzma.h presence
> configure:30232: g++ -std=gnu++11 -E -std=gnu++11  conftest.cpp
> configure:30232: $? = 0
> configure:30232: result: yes
> configure:30232: checking for lzma.h
> configure:30232: result: yes
> configure:30241: checking for xz >= 4.999.0
> configure:30320: result: /usr/bin/xz
> configure:30329: will use system package and not install SPKG xz
> ```
>
> ```
> ## ------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG libffi... ##
> ## ------------------------------------------------------- ##
> configure:23725: checking for LIBFFI
> configure:23732: $PKG_CONFIG --exists --print-errors "libffi"
> configure:23735: $? = 0
> configure:23749: $PKG_CONFIG --exists --print-errors "libffi"
> configure:23752: $? = 0
> configure:23938: result: yes
> configure:23946: will use system package and not install SPKG libffi
> ```
>
> The `configure` script concludes that it can use system packages
> for `xz` and `libffi`; and that `sqlite`, `libpng` and `bzip2`
> have already been installed by SageMath, so there is no point
> in checking for the existence of corresponding system packages.
>
> The final recommendations emitted by `configure` are slightly off:
> it recommends installing every package for which the decision
> reached during the checks was not to use the sytem package.
> But sometimes, what led to that decision was not the absence
> of a suitable system package, but other factors.
>
> Improving that is tracked at
>
> - Sage Trac ticket 29586
>   Improve configure's recommendations
>   https://trac.sagemath.org/ticket/29586
>
> If you want Sage to use your system's Python3, maybe you can
> uninstall the `sqlite`, `libpng` and `bzip2` SPKGs:
>
> ```
> $ make sqlite-clean
> $ make libpng-clean
> $ make bzip2-clean
> ```
>
> and run `configure` again.
>
> If you want to make sure to use as many system packages
> as possible, you might want to uninstall more things with:
> ```
> $ make distclean
> ```
>
> and run `configure` again.
>
>  
>

-- 
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/59136cc1-c185-44f8-b158-72a284462a6dn%40googlegroups.com.

Reply via email to