Hi!

On 2020-03-30, Dima Pasechnik <[email protected]> wrote:
> On Tue, 31 Mar 2020, 03:03 Vincent Delecroix, <[email protected]>
> wrote:
>> Le 29/03/2020 à 21:50, Matthias Köppe a écrit :
>> >
>> > Let me remark that this is the first beta that tries to use the system
>> > python3 in a venv (#27824) instead of building our own copy of python3.
>> > Tests of building from scratch or (after "make python3-clean") would be
>> > valuable.
>>
>> Very disappointing

Let me add further disappointments:

After making sure that python3.7.7 is installed on my laptop and after
installing the recommended system packages mentioned in
http://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation
(but note that libflint-arb-dev isn't available for me in ubuntu, no
idea why), I get this in my config.log:

## Checking whether SageMath should install SPKG python3... ##
## -------------------------------------------------------- ##
configure:25026: checking whether any of sqlite libpng bzip2 xz libffi is 
installed or will be installed as SPKG
configure:25030: result: yes; install python3 as well
configure:25273: no suitable system package found for SPKG python3

Concerning sqlite, I see this:
## Checking whether SageMath should install SPKG sqlite... ##
## ------------------------------------------------------- ##
configure:24630: checking libsqlite3 >= sqlite3_min_version
configure:24664: g++ -std=gnu++11 -o conftest -g -O2    conftest.cpp -lm4rie 
-lgf2x -lreadline -L/usr/lib/x86_64-linux-gnu -lcurl -lbz2 -lgmp -lm  -lntl 
-lsqlite3 >&5
conftest.cpp:69:62: fatal error: sqlite3.h: No such file or directory

So, apparently libsqlite3-dev needs to be installed (it isn't mentioned in the
list of recommended packages), the other stuff (libpng, bzip2, xz,
libffi apparently is installed on my system).

After installing libsqlite3-dev, I get another problem:
## -------------------------------------------------------- ##
## Checking whether SageMath should install SPKG python3... ##
## -------------------------------------------------------- ##
configure:25026: checking whether any of sqlite libpng bzip2 xz libffi is 
installed or will be installed as SPKG
configure:25035: result: no
configure:25045: checking for python3 >= 3.7.3, < 3.8 with modules sqlite3, 
ctypes, math, hashlib, crypt, readline, socket, zlib, distutils.core
configure:25051: result: 
configure:25066: checking ... whether /usr/bin/python3.7 is good
configure:25200: result: no, the version is in the supported range, and the 
modules can be imported, but distutils cannot build an extension
configure:25066: checking ... whether /usr/bin/python3 is good
configure:25200: result: no, the version is in the supported range, and the 
modules can be imported, but distutils cannot build an extension
configure:25247: result: 
configure:25273: no suitable system package found for SPKG python3

Since it mentions "extensions", I was trying to install cython3. But
this didn't help, distutils still cannot build an extension. So, I tried
to install python3-distutils (but this is not available in ubuntu) and
eventually python3-distutils-extra.

Result:
Still doesn't work.

So, it seems to be that the following updates to the Sage installation
guide should be done:

- Something should be done about libflint-arb-dev
- libsqlite3-dev should be added
- It should be explained what to do concerning the system python3's
  distutils' inability to build extensions.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/r5trb1%243kub%241%40ciao.gmane.io.

Reply via email to