make error package: libgd-2.3.2

65 views
Skip to first unread message

Yan Bo Ti

unread,
May 11, 2023, 9:07:57 AM5/11/23
to sage-devel
Hello all, firstly, thank you for your hard work.

I am trying to compile sage from source, because I can't seem to do sage -pip install if I were to install it using pacman.
But in the course of building sage, I encountered an error with libgd. Is it possible to continue without installing libgd? I've included the log file in this post. Thanks once again.
libgd-2.3.2.log

Dima Pasechnik

unread,
May 11, 2023, 9:25:56 AM5/11/23
to sage-...@googlegroups.com
this is caused by a bug in libgd, which detects external libraries it
can use incorrectly in this case. Your log says

** Configuration summary for libgd 2.3.2:

Support for gd/gd2 images: yes
Support for Zlib: yes
Support for PNG library: yes
Support for JPEG library: no
Support for WebP library: yes
Support for HEIF library: yes
Support for AVIF library: no
Support for TIFF library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: no
Support for Xpm library: no
Support for liq library: no
Support for complex text: no
Support for pthreads: yes

Of these, only PNG is needed. We'll be fixing this in
https://github.com/sagemath/sage/pull/35477
Meanwhile you may manually apply the fix from there:

Replace your build/pkgs/libgd/spkg-install.in with
https://raw.githubusercontent.com/sagemath/sage/212afefe219cbfa3b4f64c26ced60f63699b64b3/build/pkgs/libgd/spkg-install.in

and run ./configure && make



>
> --
> 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/71c95be5-5e3c-4899-9be0-5d0f72449a2cn%40googlegroups.com.

Yan Bo Ti

unread,
May 22, 2023, 5:27:13 AM5/22/23
to sage-devel
This works now. Thank you so much, Dima!
Reply all
Reply to author
Forward
0 new messages