Macos – port command of MacPorts not found when trying to install wine


I'm an absolute terminal noob (the wine installation process was my first ever time opening it) so its probably a simple fix. that being said I will need any answer broken down to its simplest possible components, I'm a proficient copy-paster 😛

I am trying to instal wine on my macbook with snow leopard, I've been following an online tutorial and installed mac ports, a java package, and xcode. however when comes to the actual installation of wine, this happens:

bogon:~ Chris$  sudo port install wine
sudo: port: command not found
bogon:~ Chris$ 

Based on my research the problem has something to do with configuring xcode properly. If you agree that this is the likely culprit, could someone please break down just how to that, something to do with my profile or something like that (did I mention I'm a noob :P)

Best Answer

Actually, your problem is more likely that /opt/local/bin isn't in your (or root's) $PATH, which will happen if you are using a Terminal window that was open when you installed MacPorts or if you overrode its attempt to add $PATH to your shell configuration. If there are XCode issues, you won't find out about them until you can run port.

EDIT: per comments, this appears to be a missing tclsh. On my Snow Leopard system, its vitals:

mress:10078 Z$ ls -l /usr/bin/tclsh
lrwxr-xr-x  1 root  wheel  8 Nov 19  2009 /usr/bin/tclsh@ -> tclsh8.5
mress:10079 Z$ ls -lL /usr/bin/tclsh
-rwxr-xr-x  1 root  wheel  42640 Jul 23  2009 /usr/bin/tclsh*
mress:10080 Z$ pkgutil --file-info /usr/bin/tclsh
volume: /
path: /usr/bin/tclsh

install-time: 1258693096
uid: 0
gid: 0
mode: 755