[MacPorts] #31702: port select fails if symlink already exists from earlier installation

MacPorts noreply at macports.org
Fri Oct 21 09:02:48 PDT 2011


#31702: port select fails if symlink already exists from earlier installation
----------------------------------+-----------------------------------------
 Reporter:  gunnlaugur@…          |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  base                  |     Version:  2.0.3                                
 Keywords:                        |        Port:                                       
----------------------------------+-----------------------------------------
 This command:

 {{{
 sudo port select python python26
 }}}

 is failing with the output:

 {{{
 Selecting 'python26' for 'python' failed: symlink:
 /opt/local/etc/select/python/current -> python26: file already exists
 }}}

 The timestamp on `/opt/local/etc/select/python/current` is August 3. But I
 nuked my whole MacPorts setup yesterday in accordance with [wiki:Migration
 Migration]. So after uninstalling all python versions and reinstalling
 MacPorts itself, this symlink remains, and interferes with `port select`.

 I hit the same problem with `port select gcc42` so it seems to be a
 general MacPorts problem, not specific to python.

-- 
Ticket URL: <https://trac.macports.org/ticket/31702>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list