#43194: Failed to initialize Macports ------------------------------+------------------- Reporter: awil1026.1090@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.1 Resolution: | Keywords: Port: | ------------------------------+------------------- Comment (by cal@…): Replying to [comment:4 awil1026.1090@…]:
Yes, I have the tclIndex and the tm.tcl with the line proc ::tcl::tm::UnknownHandler {original name args} in the /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts directory. OK. `tm.tcl` obviously is a file, but is `tclIndex` a file aswell, or is it a directory? It should be a file, if it's a directory your Tcl installation is broken.
The last question: there is a '''directory''' called tclIndex, are you asking if there is a tclIndex folder within the /usr/bin/tclsh directory? No, I'm not asking if there's a `tclIndex` folder in `/usr/bin/tclsh`, because `/usr/bin/tclsh` is a file.
The answer to that question would be no, but if you are reemphasizing whether I had the tclIndex folder within the /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts directory, then yes as stated above. Yeah, so that's the problem here. I'm not sure how you ended up with a folder called `tclIndex` in this system directory. Maybe your filesystem is flipping some bits it shouldn't? Try running repair from Disk Utility, and if that doesn't fix it, do the following:
- Move `/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tclIndex` aside, e.g. to `tclIndex.bak` - Recreate the `tclIndex` file by running `cd /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts && echo 'auto_mkindex .' | sudo /usr/bin/tclsh` - Make sure the new `tclIndex` file has the correct permissions (rw for root, readable by group and world). -- Ticket URL: <https://trac.macports.org/ticket/43194#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X