On Fri, 8 Apr 2022, 22:06 ph h, <hohoang...@gmail.com> wrote: > Hi, > > > Yes, this is needed for Python headers, but still > > sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev openssl > libssl-dev > > ~/sage-9.6$ sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev > openssl libssl-dev > E: Invalid operation libffi-dev > > Is something missing on this WSL system? >
sorry, it should be sudo apt-get install libffi-dev .... > Thank you for your help. > > Regards, > > phiho > > > On Fri, Apr 8, 2022 at 9:53 AM Dima Pasechnik <dimp...@gmail.com> wrote: > >> On Fri, Apr 8, 2022 at 2:39 PM Vincent Delecroix >> <20100.delecr...@gmail.com> wrote: >> > >> > You could install the python3-dev Ubuntu package to fix the issue. >> >> Yes, this is needed for Python headers, but still >> >> sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev openssl >> libssl-dev >> >> might be needed too. >> >> >> > >> > Le 08/04/2022 à 05:32, 'Nasser M. Abbasi' via sage-devel a écrit : >> > > looking at config.log, it rejected the python version Python 3.10.4 I >> had >> > > because of this >> > > >> > > ## -------------------------------------------------------- ## >> > > ## Checking whether SageMath should install SPKG python3... ## >> > > ## -------------------------------------------------------- ## >> > > configure:31945: checking whether any of bzip2 liblzma libffi is >> installed >> > > as or will be installed as SPKG >> > > configure:31954: result: no >> > > configure:31958: checking for python3 >= 3.7.0, < 3.11.0 with modules >> > > sqlite3, ctypes, math, hashlib, crypt, socket, zlib, distutils.core, >> ssl >> > > configure:32625: result: >> > > configure:32649: checking ... whether /bin/python3 is good >> > > CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3 conftest.py >> --verbose >> > > build --build-base=conftest.dir >> > > /mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1: >> > > DeprecationWarning: The distutils package is deprecated and slated for >> > > removal in Python 3.12. Use setuptools or check PEP 632 for potential >> > > alternatives >> > > from distutils.core import setup >> > > running build >> > > running build_ext >> > > building 'config_check_distutils' extension >> > > creating conftest.dir >> > > creating conftest.dir/temp.linux-x86_64-3.10 >> > > gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g >> > > -fstack-protector-strong -Wformat -Werror=format-security -g >> > > -fstack-protector-strong -Wformat -Werror=format-security -fPIC >> > > >> -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include >> > > -I/usr/include/python3.10 -c conftest.c -o >> > > conftest.dir/temp.linux-x86_64-3.10/conftest.o >> > > conftest.c:75:10: fatal error: Python.h: No such file or directory >> > > 75 | #include <Python.h> >> > > | ^~~~~~~~~~ >> > > compilation terminated. >> > > error: command '/bin/gcc' failed with exit code 1 >> > > configure:33213: result: no, the version is in the supported range, >> and the >> > > modules can be imported, but distutils cannot build a C extension >> > > configure:32649: checking ... whether /usr/bin/python3 is good >> > > CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3 conftest.py >> --verbose >> > > build --build-base=conftest.dir >> > > /mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1: >> > > DeprecationWarning: The distutils package is deprecated and slated for >> > > removal in Python 3.12. Use setuptools or check PEP 632 for potential >> > > alternatives >> > > from distutils.core import setup >> > > running build >> > > running build_ext >> > > building 'config_check_distutils' extension >> > > creating conftest.dir >> > > creating conftest.dir/temp.linux-x86_64-3.10 >> > > gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g >> > > -fstack-protector-strong -Wformat -Werror=format-security -g >> > > -fstack-protector-strong -Wformat -Werror=format-security -fPIC >> > > >> -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include >> > > -I/usr/include/python3.10 -c conftest.c -o >> > > conftest.dir/temp.linux-x86_64-3.10/conftest.o >> > > conftest.c:75:10: fatal error: Python.h: No such file or directory >> > > 75 | #include <Python.h> >> > > | ^~~~~~~~~~ >> > > compilation terminated. >> > > error: command '/bin/gcc' failed with exit code 1 >> > > configure:33213: result: no, the version is in the supported range, >> and the >> > > modules can be imported, but distutils cannot build a C extension >> > > configure:33271: result: >> > > configure:33275: to try to use a different system python, use >> ./configure >> > > --with-python=/path/to/python >> > > configure:33302: no suitable system package found for SPKG python3 >> > > >> > > >> > > >> > > On Thursday, April 7, 2022 at 11:18:56 AM UTC-5 dim...@gmail.com >> wrote: >> > > >> > >> On Thu, Apr 7, 2022 at 4:41 PM 'Nasser M. Abbasi' via sage-devel >> > >> <sage-...@googlegroups.com> wrote: >> > >>> >> > >>> Here is the information you asked for >> > >>> >> > >>>> which python3 >> > >>> /bin/python3 >> > >>> >> > >>>> python3 --version >> > >>> Python 3.10.4 >> > >>> >> > >>>> which python >> > >>> /bin/python >> > >>> >> > >>>> python --version >> > >>> Python 3.10.4 >> > >>>> >> > >>> >> > >> Thanks. >> > >> How about config.log? >> > >> I suppose your python3 is rejected as it does not have all the >> > >> required by Sage modules >> > >> installed. (Or its other dependencies are not fully installed) >> > >> >> > >> At the end of the run of ./configure there is a message printed with >> > >> recommendations >> > >> what you should install system-wide. >> > >> In particular, you should run >> > >> >> > >> sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev >> > >> >> > >> >> > >> >> > >> >> > >>> >> > >>> On Thursday, April 7, 2022 at 3:39:03 AM UTC-5 dim...@gmail.com >> wrote: >> > >>>> >> > >>>> On Thu, Apr 7, 2022 at 9:01 AM Dima Pasechnik <dim...@gmail.com> >> wrote: >> > >>>>> >> > >>>>> On Thu, Apr 7, 2022 at 6:17 AM 'Nasser M. Abbasi' via sage-devel >> > >>>>> <sage-...@googlegroups.com> wrote: >> > >>>>>> >> > >>>>>> Basic question: >> > >>>>>> >> > >>>>>> I Downloaded beta 7 source code. When I do ./configure, it tells >> me >> > >> that it wants to install Python 3-3.1.0.3 since no suitable one >> found. >> > >>>>>> >> > >>>>>> However, I have Python 3.10.4 installed. >> > >>>>>> So why is it building [python3-3.10.3] ? >> > >>>>>> >> > >>>>>>> which python >> > >>>>>> /bin/python >> > >>>>>>> python --version >> > >>>>>> Python 3.10.4 >> > >>>>> >> > >>>>> the tests in ./configure are for python3, not python >> > >>>>> >> > >>>>> What's the output of >> > >>>>> >> > >>>>> which python3 >> > >>>>> >> > >>>>> ? >> > >>>> >> > >>>> also, check >> > >>>> >> > >>>> python3 --version >> > >>>> >> > >>>> >> > >>>> In any case, if you're still stuck, please post the top-level >> config.log >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>>> >> > >>>>> >> > >>>>>>> >> > >>>>>> >> > >>>>>> I am on Ubuntu 20.04 >> > >>>>>> >> > >>>>>> I hope this Python it is building will not interfere with my own >> > >> Python after installation of sagemath when it is done building? >> > >>>>>> >> > >>>>>> --Nasser >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> -- >> > >>>>>> 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+...@googlegroups.com. >> > >>>>>> To view this discussion on the web visit >> > >> >> https://groups.google.com/d/msgid/sage-devel/164fbf11-73a4-432f-be15-0c2db3c48e49n%40googlegroups.com >> > >> . >> > >>> >> > >>> -- >> > >>> 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+...@googlegroups.com. >> > >>> To view this discussion on the web visit >> > >> >> https://groups.google.com/d/msgid/sage-devel/2ff27a53-69e6-4be2-bee1-24604ca9e651n%40googlegroups.com >> > >> . >> > >> >> > > >> > >> > -- >> > 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/927a0aef-88e5-33a9-48b0-eccecf28a275%40gmail.com >> . >> >> -- >> 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/CAAWYfq3yZSG%3Dtbm7ha5v-e76fO6dYUYJEiBsqS83Zn5cw-waEA%40mail.gmail.com >> . >> > -- > 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/CALZQg1bPreaipTULxBzsTAcLr9_yr4WajiTFotvYqEQuwY-fcQ%40mail.gmail.com > <https://groups.google.com/d/msgid/sage-devel/CALZQg1bPreaipTULxBzsTAcLr9_yr4WajiTFotvYqEQuwY-fcQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAAWYfq31RNNWgCBY_7pT7pzqhmT8CCzTBG%3DMWTzT%2BF5YH%3DVpmg%40mail.gmail.com.