Error while running 'make' for sage-9.2

43 views
Skip to first unread message

Akshat Agrawal

unread,
Mar 3, 2021, 5:05:53 PMMar 3
to sage-support
Dear All,

I am trying to set up Sage-9.2 on by Ubuntu 18.04 on Anaconda. But I am stuck at a point.
Please find attached the error log file.

It will be very helpful if I can get a solution to this problem.

Thanks & Regards,
python3-3.8.5.log

Dima Pasechnik

unread,
Mar 3, 2021, 5:09:13 PMMar 3
to sage-support
why would you need to build python, rather than use one you can install on the system, or into your conda environment?


Thanks & Regards,

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/f5fadf6a-8f04-4919-8aa8-2b6495031119n%40googlegroups.com.

Akshat Agrawal

unread,
Mar 4, 2021, 6:18:26 AMMar 4
to sage-support
Well, I was simply using the command "make". It started to install python itself. I already have Python-3.8.5 installed in my Anaconda Environment. Can you please tell me how should I skip this python installation?

Dima Pasechnik

unread,
Mar 4, 2021, 8:43:34 AMMar 4
to sage-support
On Thu, Mar 4, 2021 at 11:18 AM 'Akshat Agrawal' via sage-support
<sage-s...@googlegroups.com> wrote:
>
> Well, I was simply using the command "make". It started to install python itself. I already have Python-3.8.5 installed in my Anaconda Environment. Can you please tell me how should I skip this python installation?

Actually, I am not sure whether under Anaconda it is going to work at
all. Please have a look at
https://doc.sagemath.org/html/en/installation/conda.html

As you see, you can install and run Sage 9.2 under conda without any
compiling at all.
As well, in this environment you can build Sage from source.

Whether the commercial Anaconda environment would work, I don't know.
Perhaps you need to add extra channels...

Please post the top-level config.log - so that we can see what is
happening with your build.

>
> On Thursday, March 4, 2021 at 3:39:13 AM UTC+5:30 dim...@gmail.com wrote:
>>
>>
>>
>> On Wed, 3 Mar 2021, 22:05 'Akshat Agrawal' via sage-support, <sage-s...@googlegroups.com> wrote:
>>>
>>> Dear All,
>>>
>>> I am trying to set up Sage-9.2 on by Ubuntu 18.04 on Anaconda. But I am stuck at a point.
>>> Please find attached the error log file.
>>>
>>> It will be very helpful if I can get a solution to this problem.
>>
>>
>> why would you need to build python, rather than use one you can install on the system, or into your conda environment?
>>
>>>
>>> Thanks & Regards,
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/f5fadf6a-8f04-4919-8aa8-2b6495031119n%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/8e857a82-ef11-4a0d-bb20-9a66244b3a05n%40googlegroups.com.

Akshat Agrawal

unread,
Mar 4, 2021, 9:16:43 AMMar 4
to sage-support
After reading the "configure" file in SAGE_ROOT directory, I found that due to some packages, Python3 is installing again.

Here I am stating that specific code:

```{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether any of sqlite libpng bzip2 xz libffi is installed as or will be installed as SPKG" >&5
$as_echo_n "checking whether any of sqlite libpng bzip2 xz libffi is installed as or will be installed as SPKG... " >&6; }
    if test x = y  -o x$sage_spkg_install_sqlite = xyes -o x$sage_spkg_install_libpng = xyes -o x$sage_spkg_install_bzip2 = xyes -o x$sage_spkg_install_xz = xyes -o x$sage_spkg_install_libffi = xyes; then : ```

And after running ./configure, I see that out of these 5 packages, libpng and bzip2 are not being recognized even though they are installed already in my system.

Maybe the difference in version is the problem, but I am not able to find the correct version. So, as of now, I am stuck at this point. Please suggest if you have any solution for this.

Dima Pasechnik

unread,
Mar 4, 2021, 9:49:01 AMMar 4
to sage-support
On Thu, Mar 4, 2021 at 2:16 PM 'Akshat Agrawal' via sage-support
<sage-s...@googlegroups.com> wrote:
>
> After reading the "configure" file in SAGE_ROOT directory, I found that due to some packages, Python3 is installing again.
>
> Here I am stating that specific code:
>
> ```{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether any of sqlite libpng bzip2 xz libffi is installed as or will be installed as SPKG" >&5
> $as_echo_n "checking whether any of sqlite libpng bzip2 xz libffi is installed as or will be installed as SPKG... " >&6; }
> if test x = y -o x$sage_spkg_install_sqlite = xyes -o x$sage_spkg_install_libpng = xyes -o x$sage_spkg_install_bzip2 = xyes -o x$sage_spkg_install_xz = xyes -o x$sage_spkg_install_libffi = xyes; then : ```
>
> And after running ./configure, I see that out of these 5 packages, libpng and bzip2 are not being recognized even though they are installed already in my system.
>
Packages on your system need not always be used by conda, sometmes
conda installs its
own packages (e.g. this is often the case with compilers).
Cf. https://doc.sagemath.org/html/en/installation/source.html#notes-on-using-anaconda-miniconda

One way to make sure that all the conda packages needed to build Sage
are installed is to install
conda's Sage.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/86fbc533-0538-41ba-bfa1-3ba979e7687bn%40googlegroups.com.

Akshat Agrawal

unread,
Mar 4, 2021, 10:23:16 AMMar 4
to sage-support
Thanks for the help. I searched for bzip2 and libpng packages on Anaconda Cloud and installed them. It is no more installing Python-3.8.5

Although, now I am stuck at some other part. XD.

Thanks again.

Dima Pasechnik

unread,
Mar 4, 2021, 11:27:16 AMMar 4
to sage-support
On Thu, Mar 4, 2021 at 3:23 PM 'Akshat Agrawal' via sage-support
<sage-s...@googlegroups.com> wrote:
>
> Thanks for the help. I searched for bzip2 and libpng packages on Anaconda Cloud and installed them. It is no more installing Python-3.8.5
>
> Although, now I am stuck at some other part. XD.

look at the last lines of output of ./configure

it says which packages to install
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/bf9f286c-e5fd-4a3f-b06a-c786d4f62738n%40googlegroups.com.

Akshat Agrawal

unread,
Mar 5, 2021, 12:34:04 PMMar 5
to sage-support
After a little struggle, I have completed "make build". But in "make doc" part, I am facing another error. And I couldn't find any solution to this on the web.

Below is the error:
```
[dochtml] ImportError: /home/akshat_ag10/Desktop/WorkRelated/SageJutsu/Sage/sage/local/lib/python3.9/site-packages/sage/matrix/matrix_modn_sparse.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN5FFLAS7fscalinIN6Givaro7ModularIffvEEEEvRKT_mmNS4_7ElementENS4_11Element_ptrEm
Makefile:1902: recipe for target 'doc-html' failed
```
There was one same question on StackOverflow (https://stackoverflow.com/questions/56305895/sagemath-running-make-ends-with-importerror-in-dochtml-phase). But there was no solution to this.

It will be very helpful of you to take a look into this.

Reply all
Reply to author
Forward
0 new messages