Safely correcting an incorrect symbolic link in /opt/local

Chris Jones jonesc at hep.phy.cam.ac.uk
Sun Mar 3 16:48:41 UTC 2019


Hi,

Looks like you at some point installed macports python 3.7, then port selected it, and subsequently uninstalled it without unselecting it first.

Try installing python 3.7, or running port select to remove the python setting.

Chris

> On 3 Mar 2019, at 3:56 pm, Epstein, David <David.Epstein at warwick.ac.uk> wrote:
> 
> HottieNew-2:~% ls -l /opt/local/bin/python
> lrwxr-xr-x  1 root  wheel  24  1 Mar 16:50 /opt/local/bin/python@ -> /opt/local/bin/python3.7
> HottieNew-2:~% ls -l /opt/local/bin/python3.7
> ls: /opt/local/bin/python3.7: No such file or directory
> 
> There doesn’t seem to be a macports version of Python3.7.
> How should I safely remove/correct this incorrect symbolic link?
> 
> Is there a port command that would fix this?
> 
> I currently have
> 
> HottieNew-2:~% ls -l /opt/local/bin/python3.6
> lrwxr-xr-x  1 root  admin  73 30 Dec 13:02 /opt/local/bin/python3.6@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
> HottieNew-2:~% ls -l /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python*
> lrwxr-xr-x  1 root  wheel      9 30 Dec 13:02 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3@ -> python3.6
> lrwxr-xr-x  1 root  wheel     16 30 Dec 13:02 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3-config@ -> python3.6-config
> -rwxr-xr-x  2 root  wheel  13628 30 Dec 13:01 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6*
> lrwxr-xr-x  1 root  wheel     17 30 Dec 13:02 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config@ -> python3.6m-config
> -rwxr-xr-x  2 root  wheel  13628 30 Dec 13:01 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m*
> -rwxr-xr-x  1 root  wheel   2091 30 Dec 13:02 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config*
> 
> thanks
> David Epstein
> 
> 
> 
> 
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20190303/5e62d4df/attachment.html>


More information about the macports-users mailing list