[MacPorts] #56538: gnucash @3.1: Python support enabled, but Python interpreter not found
MacPorts
noreply at macports.org
Wed Jun 13 01:41:53 UTC 2018
#56538: gnucash @3.1: Python support enabled, but Python interpreter not found
-------------------------+----------------------
Reporter: ryandesign | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gnucash |
-------------------------+----------------------
Comment (by tcwan):
This can be worked around when building gnucash @3.1 by doing the
following:
1. sudo port select python python36
2. cd /opt/local/lib; sudo ln -s
/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib
.
3. Possibly need do the same for libpython3.6m.dylib (I did it in any
case)
4. cd /opt/local/lib; sudo ln -s
/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/
.
5. (This is the weird part) cd /opt/local/lib; sudo mv python-2.7 old-
python-2.7
6. build gnucash @3.1
7. (Restore python-2.7 path) cd /opt/local/lib; sudo mv old-python-2.7
python-2.7
8. sudo port select python [your default python]
From the problem, I guess the gnucash configure script is not searching
for the correct Python interpreter at the correct locations.
In addition, Python 3.x Portfile should probably configure links to
/opt/local/lib for the dylib and access to the 3.x site-packages
directories.
--
Ticket URL: <https://trac.macports.org/ticket/56538#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list