Failure to build 9.0 -- matplotlib error

73 views
Skip to first unread message

Jeremy Martin

unread,
Jan 21, 2020, 3:01:26 PM1/21/20
to sage-devel
I'm trying to build Sage 9.0 from source under MacOS Mojave 10.14.6. I ran into an error with matplotlib.  The end of the error message is below, and I'm attaching the logfile.

Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: matplotlib-2.2.4.p0
  log file: /Applications/sage-9.0/logs/pkgs/matplotlib-2.2.4.p0.log
  build directory: /Applications/sage-9.0/local/var/tmp/sage/build/matplotlib-2.2.4.p0

Any advice you can give will be helpful.  Thanks!

--Jeremy Martin
matplotlib-2.2.4.p0.log

Dima Pasechnik

unread,
Jan 21, 2020, 3:43:02 PM1/21/20
to sage-devel
the interesting part of the log is

* The following required packages can not be built:
* png
* Try installing png with `brew install libpng` and
* pkg-config with `brew install pkg-config`

It seems you are building under Homebrew, but something goes wrong with libpng.
Do you have it installed?

Do you have Sage's libpng built?
> --
> 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/ecd0ca50-ef2d-4d8d-859e-0e746e093b25%40googlegroups.com.

Jeremy Martin

unread,
Jan 21, 2020, 5:32:48 PM1/21/20
to sage-devel
Thanks, I did not notice that.  I will try it and report back.

-Jeremy


On Tuesday, January 21, 2020 at 2:43:02 PM UTC-6, Dima Pasechnik wrote:
the interesting part of the log is

                           * The following required packages can not be built:
                            * png
                            * Try installing png with `brew install libpng` and
                            * pkg-config with `brew install pkg-config`

It seems you are building under Homebrew, but something goes wrong with libpng.
Do you have it installed?

Do you have Sage's libpng built?




On Tue, Jan 21, 2020 at 8:01 PM Jeremy Martin <jeremy...@gmail.com> wrote:
>
> I'm trying to build Sage 9.0 from source under MacOS Mojave 10.14.6. I ran into an error with matplotlib.  The end of the error message is below, and I'm attaching the logfile.
>
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-start'):
>
> * package: matplotlib-2.2.4.p0
>   log file: /Applications/sage-9.0/logs/pkgs/matplotlib-2.2.4.p0.log
>   build directory: /Applications/sage-9.0/local/var/tmp/sage/build/matplotlib-2.2.4.p0
>
> Any advice you can give will be helpful.  Thanks!
>
> --Jeremy Martin
>
> --
> 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-...@googlegroups.com.

Jeremy Martin

unread,
Jan 22, 2020, 10:19:05 AM1/22/20
to sage-devel
Hmm.  I did "brew install libpng" and "brew install pkg-config", then tried to build again.  This time make threw an error that pkg-config was not installed.  Setting the PKG_CONFIG environment variable does not fix the problem.  I'm not sure what is going on, since pkg-config is located in /usr/local/bin, which is in both PKG_CONFIG and PATH.

The logfile is attached.  Thanks again for your help.

-Jeremy
brial-1.2.5.log

Dima Pasechnik

unread,
Jan 22, 2020, 10:31:40 AM1/22/20
to sage-devel
hmm, did you re-run ./configure after these installations?

could you post config.log ?


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/2cf8de41-abb6-4069-86ec-24d5e7697980%40googlegroups.com.

Jeremy Martin

unread,
Jan 22, 2020, 10:45:50 AM1/22/20
to sage-devel
Just ran ./configure and am about to try make again.  config.log is attached.

-JLM


On Wednesday, January 22, 2020 at 9:31:40 AM UTC-6, Dima Pasechnik wrote:
hmm, did you re-run ./configure after these installations?

could you post config.log ?


config.log

Jeremy Martin

unread,
Jan 22, 2020, 11:59:25 AM1/22/20
to sage-...@googlegroups.com
Same problem after running .configure and make.  Again, it breaks while trying to build brial.  New log attached.

Thanks again,
Jeremy
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/u7ON4JnrhGM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/39a9bbd9-e310-410f-8b7f-cb06b465be78%40googlegroups.com.

brial-1.2.5.log

Dima Pasechnik

unread,
Jan 22, 2020, 12:12:49 PM1/22/20
to sage-devel
On Wed, Jan 22, 2020 at 4:59 PM Jeremy Martin <jeremy....@gmail.com> wrote:
>
> Same problem after running .configure and make. Again, it breaks while trying to build brial. New log attached.

It seems like you have some old Sage bits in your PATH:

checking pkg-config is at least version 0.9.0...
/Applications/sage-8.4/local/bin/pkg-config

(and this results in an error, as this pkg-config has no idea about
Sage you want to build)

Make sure it's not found.
> 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/d30e13f1-2668-9b08-56b2-7b0cc17fac64%40gmail.com.

Jeremy Martin

unread,
Jan 23, 2020, 9:47:38 AM1/23/20
to sage-...@googlegroups.com
OK, everything worked fine this time.  Dima, thanks very much for your help!
-Jeremy
Reply all
Reply to author
Forward
0 new messages