<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Lawrence,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 13 Oct 2016, at 16:49, Lawrence Velázquez <<a href="mailto:larryv@macports.org" class="">larryv@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello,<br class=""><br class=""><blockquote type="cite" class="">On Oct 13, 2016, at 7:30 AM, Björn Raupach <<a href="mailto:raupach@me.com" class="">raupach@me.com</a>> wrote:<br class=""><br class="">At first I assumed it sets the default symlink for the command in<br class="">/usr/bin<br class=""></blockquote><br class="">MacPorts almost never touches /usr.<br class=""><br class="">The "port select" command creates symlinks under $prefix, according to<br class="">rules specified by the relevant *_select port. For instance,<br class="">python_select (used by "port select --set python") creates these files:<br class=""><br class=""><a href="https://trac.macports.org/browser/trunk/dports/sysutils/python_select/files/base" class="">https://trac.macports.org/browser/trunk/dports/sysutils/python_select/files/base</a><br class=""></div></div></blockquote><div><br class=""></div><div>thanks for the explanation about what select does</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class="">select —summary<br class=""><br class="">Name     Selected     Options<br class="">====     ========     =======<br class="">awscli   py34-awscli  py34-awscli none<br class="">maven    maven3       maven3 none<br class="">mysql    mysql56      mysql56 none<br class="">pip      none         none<br class="">python   none         python26-apple python27-apple python34 none<br class="">python3  none         python34 none<br class=""><br class="">Why is python in more than one group?<br class=""></blockquote><br class="">The python, python2, and python3 groups are distinct from one another<br class="">and install different symlinks. This is an attempt to adhere to PEP 394<br class="">as best we can.<br class=""><br class=""><a href="https://trac.macports.org/browser/trunk/dports/sysutils/python2_select/files/base" class="">https://trac.macports.org/browser/trunk/dports/sysutils/python2_select/files/base</a><br class="">https://trac.macports.org/browser/trunk/dports/sysutils/python3_select/files/base<br class="">https://www.python.org/dev/peps/pep-0394<br class=""><br class=""><blockquote type="cite" class="">If I call python from the command line it launches the python3.4 even<br class="">though port select shows that none is selected.<br class=""><br class="">port select —set python python34 yields an error: Selection ‘python34’ for ‘python’ failed: symlink: /opt/local/etc/select/python/current -> python34: file already exists.<br class=""></blockquote><br class="">This problem was brought up previously on this list. You may have<br class="">uninstalled python34 at some point while it was selected; the "port<br class="">select" code doesn't handle this properly and leaves dangling symlinks.<br class="">Can you run this and tell us what it returns? (If you see any messages<br class="">about permissions, run it again with "sudo".)<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>$ find -L /opt/local -type l<br class=""></div></div></blockquote><div><br class=""></div><div><div>/opt/local/bin/pip</div><div>/opt/local/etc/select/pip/current</div><div>/opt/local/etc/select/python/current</div><div>/opt/local/etc/select/python3/current</div><div>/opt/local/var/macports/software/python27/mpextractM3fm6ZtI/opt/local/share/man/man1/python2.7.1</div><div class=""><br class=""></div><div class="">Yes. I have played around with MacPorts and probably messed it up myself. I doesn’t harm anything. I was just curious.</div><div class=""><br class=""></div><div class="">Thanks for helping out!</div><div class=""><br class=""></div><div class="">/Björn</div></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">vq</div></div></blockquote></div><br class=""></div></body></html>