[MacPorts] #69546: py312-matplotlib fails to install on eMac with Leopard 10.5.8 - all dependencies installed.
MacPorts
noreply at macports.org
Mon Mar 25 00:00:18 UTC 2024
#69546: py312-matplotlib fails to install on eMac with Leopard 10.5.8 - all
dependencies installed.
----------------------------+------------------------
Reporter: ilovecrts | Owner: reneeotten
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: fixed | Keywords:
Port: py-matplotlib |
----------------------------+------------------------
Comment (by kencu):
So to workaround the libstdc++.dylib issue, we need to do this:
{{{
LeopardG5:~$ export DYLD_LIBRARY_PATH=/opt/local/lib/libgcc
LeopardG5:~$ python3
Python 3.12.2 (main, Feb 22 2024, 16:48:13) [GCC 7.5.0] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
}}}
setting {{{DYLD_LIBRARY_PATH=/opt/local/lib/libgcc}}} in the environment
before you start running anything tells the library locating software in
MacOSX to first look in {{{/opt/local/lib/libgcc}}} for any libraries it
is trying to load.
Those libraries are our new ones (which we need for the newer compiler).
The old software that has been built against
{{{/usr/lib/libstdc++.6.dylib}}} on your system seems to be quite happy
using that newer libstdc++.6.dylib, and so there is no confusion about the
objects that will be created and passed back and forth.
I will say that even though setting {{{$ export
DYLD_LIBRARY_PATH=/opt/local/lib/libgcc}}} fixes the loading problem,
other errors do show up soon after with other things.
I know very little about matplotlib, and only slightly more about python,
so for those issues, you might open a new ticket with that specific error
and perhaps someone who does know about those things will catch an
interest and help you out with that.
Now -- will everyone who uses matplotlib on 10.5 PPC need to set {{{export
DYLD_LIBRARY_PATH=/opt/local/lib/libgcc}}}? Or is there some way to
automate that? -- I can't see an easy way to automate that just now -- I
think you're stuck exporting it whenever you want to use matplotlib, at
the moment.
--
Ticket URL: <https://trac.macports.org/ticket/69546#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list